Closed diamondsw closed 1 year ago
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.
@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?
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.
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
Right now only a partial compose file is provided, and it does not show how to use command-line options. I recommend a better example that matches the command-line examples, for instance: