compose.yaml comments, make docker:/app/data writable
This commit is contained in:
@@ -53,7 +53,7 @@ RUN adduser \
|
||||
--uid "${UID}" \
|
||||
appuser
|
||||
|
||||
RUN mkdir -p /app && chown appuser:appuser /app
|
||||
RUN mkdir -p /app/data && chown -R appuser:appuser /app
|
||||
USER appuser
|
||||
WORKDIR /app
|
||||
ENV IN_DOCKER=true
|
||||
|
||||
10
compose.yaml
10
compose.yaml
@@ -10,11 +10,17 @@ services:
|
||||
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.
|
||||
# a bind mount like this is one way to do it. Remember to mkdir!
|
||||
- ./mnemodata:/app/data
|
||||
# Another way 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.
|
||||
# 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
|
||||
|
||||
# Declaring a volume for the docker volume example.
|
||||
# volumes:
|
||||
# mnemodata:
|
||||
|
||||
Reference in New Issue
Block a user