Add a dependency link between two containers and change the way Django migrations are done. Provide example for auto-starting the containers

This commit is contained in:
Georgi Todorov
2018-02-05 18:23:35 -05:00
parent 36366ab5a1
commit 0f6ff6ad53
4 changed files with 29 additions and 5 deletions

View File

@@ -30,8 +30,6 @@ RUN apk --no-cache --update add \
apk del .build-dependencies && \
# Create the consumption directory
mkdir -p $PAPERLESS_CONSUMPTION_DIR && \
# Migrate database
./src/manage.py migrate && \
# Create user
addgroup -g 1000 paperless && \
adduser -D -u 1000 -G paperless -h /usr/src/paperless paperless && \