also make migrations and migrate on startup;
This commit is contained in:
parent
cdfc6c6ee2
commit
42edbdd195
@ -10,7 +10,10 @@ services:
|
||||
build:
|
||||
context: ./backend
|
||||
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
|
||||
volumes:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user