Code Monkey home page Code Monkey logo

Comments (5)

ItsNoted avatar ItsNoted commented on June 12, 2024 2

You can use this one I made too.

services:
  paste:
    image: danielszabo99/microbin
    container_name: microbin
    restart: always
    environment:
     - MICROBIN_PRIVATE=true
     - MICROBIN_PUBLIC_PATH=https://website.com #remove this if running locally. cant use QR or copy links if not using.
     - MICROBIN_EDITABLE=true
     - MICROBIN_ENABLE_BURN_AFTER=true
     - MICROBIN_QR=true
     - MICROBIN_HIGHLIGHTSYNTAX=true
     - MICROBIN_TITLE=Microbin
     - MICROBIN_HIDE_FOOTER=true
    ports:
     - "8065:8080"
    volumes:
     - /docker/microbin:/my/microbin
     - /docker/microbin/data:/app/pasta_data #mounting database.json for persistent DB.

You can see more environment variables here.

from microbin.

langbein-daniel avatar langbein-daniel commented on June 12, 2024

@ItsNoted you provided the MICROBIN_QR variable twice, so I would remove the second declaration. And what is the /docker/microbin:/my/microbin volume for?

from microbin.

szabodanika avatar szabodanika commented on June 12, 2024

This is now available: https://github.com/szabodanika/microbin/blob/664c4495e0259fd9931f80493f821832c0446e1c/compose.yaml

from microbin.

diamondsw avatar diamondsw commented on June 12, 2024

That's not remotely a valid compose file. It doesn't have the correct name, doesn't include the version declaration, and passes all the environment variables into the container from the host... but never defines them.

from microbin.

szabodanika avatar szabodanika commented on June 12, 2024

compose.yaml is the recommended name for the docker compose file. The same docs page states that version declaration is optional. As for the environment variables, there is a .env file available that you defines these, you have to pass that to the container: docker compose --env-file .env up --detach

from microbin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.