Files
mnemosyne/compose.yaml

21 lines
687 B
YAML

services:
mnemosyne:
container_name: mnemosyne
build:
context: .
target: final
ports:
- 39321:39321
restart: unless-stopped
volumes:
# Mnemosyne would greatly enjoy not having an ephemeral database.
# If you're okay with storing it side by side with the compose file,
# this is one way to do it. Another is to use a docker volume.
- ./mnemodata:/app/data
environment:
# DATABASE_URL is crucial for Mnemosyne to work; it will fail without it.
# point it at where you'd like your database to be.
- DATABASE_URL=/app/data/db.db
# Mnemosyne uses port 39321 for HTTP by default;
# - PORT=39321