Need to depend_on wand wait for Postgres container

This commit is contained in:
Tony Hendrick
2020-05-14 12:00:53 -07:00
parent b993fd1945
commit 2ae26b0e7b
2 changed files with 2 additions and 0 deletions

1
docker/Dockerfile vendored
View File

@@ -14,6 +14,7 @@ RUN python3 -m pip install -r /usr/src/app/requirements.txt
EXPOSE 8000
WORKDIR /usr/src/app/src/
RUN ../docker/scripts/wait-for-it.sh db:5432
RUN python3 manage.py migrate
RUN python3 manage.py migrate interface
CMD ["python3", "manage.py", "runserver", "0.0.0.0:8000"]

View File

@@ -14,6 +14,7 @@ services:
volumes:
- "${LOCAL_BOOK_DIR}:/usr/src/app/Books"
- "./cron/root:/etc/crontabs/root"
- "./scripts/wait-for-it.sh:/usr/src/app/src/"
ports:
- "${PORT}:8000"
links: