Tweak docker-compose to run migrations and use port 8080

This commit is contained in:
Neil Martinsen-Burrell 2022-09-06 14:53:28 -05:00
parent 8b7cd20d1f
commit 497f5fcc79
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184

View file

@ -28,9 +28,11 @@ services:
stdin_open: true
tty: true
ports:
- "8080:8000"
- "8080:8080"
# command: "python"
command: "python manage.py runserver 0.0.0.0:8000"
command: >
bash -c " python manage.py migrate &&
python manage.py runserver 0.0.0.0:8080"
db:
image: postgres:latest