also make migrations and migrate on startup;
This commit is contained in:
parent
cdfc6c6ee2
commit
42edbdd195
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user