also make migrations and migrate on startup;

This commit is contained in:
Marco Zeisler 2021-05-04 18:51:18 +02:00
parent cdfc6c6ee2
commit 42edbdd195

View File

@ -10,7 +10,10 @@ services:
build: build:
context: ./backend context: ./backend
dockerfile: ./Dockerfile dockerfile: ./Dockerfile
command: python manage.py runserver 0.0.0.0:8000 --no-reload command:
python manage.py makemigrations app_be; \
python manage.py migrate; \
python manage.py runserver 0.0.0.0:8000 --no-reload;
env_file: env_file:
- .env - .env
volumes: volumes: