diff --git a/dj_backend_server/docker-compose.linux.yaml b/dj_backend_server/docker-compose.linux.yaml index 36471728..565139d8 100644 --- a/dj_backend_server/docker-compose.linux.yaml +++ b/dj_backend_server/docker-compose.linux.yaml @@ -67,7 +67,9 @@ services: env_file: - .env.docker command: > - sh -c "python manage.py create_superuser && + sh -c "python manage.py migrate auth && + python manage.py migrate && + python manage.py create_superuser && python manage.py sync_models && python manage.py runserver 0.0.0.0:8000" networks: diff --git a/dj_backend_server/docker-compose.yaml b/dj_backend_server/docker-compose.yaml index 3e802ce9..4b618388 100644 --- a/dj_backend_server/docker-compose.yaml +++ b/dj_backend_server/docker-compose.yaml @@ -44,7 +44,9 @@ services: env_file: - .env.docker command: > - sh -c "python manage.py create_superuser && + sh -c "python manage.py migrate auth && + python manage.py migrate && + python manage.py create_superuser && python manage.py sync_models && python manage.py runserver 0.0.0.0:8000" networks: