Merge pull request 'Run migrations before starting dev server' (#6) from fix/run-migrations-on-startup into main

Reviewed-on: #6
This commit was merged in pull request #6.
This commit is contained in:
2026-02-28 19:13:57 +00:00

View File

@@ -2,7 +2,9 @@ services:
web: web:
build: . build: .
working_dir: /app working_dir: /app
command: python manage.py runserver 0.0.0.0:8000 command: >
sh -c "python manage.py migrate --noinput &&
python manage.py runserver 0.0.0.0:8000"
volumes: volumes:
- .:/app - .:/app
ports: ports: