|
|
@ -15,6 +15,10 @@ services: |
|
|
|
|
|
|
|
django: |
|
|
|
build: ./docker_django |
|
|
|
command: > |
|
|
|
sh -c "python manage.py wait_for_db && |
|
|
|
python manage.py migrate && |
|
|
|
python manage.py runserver 0.0.0.0:8000" |
|
|
|
restart: always |
|
|
|
volumes: |
|
|
|
- /vagrant:/etc/project |
|
|
@ -22,6 +26,4 @@ services: |
|
|
|
- 80:8000 |
|
|
|
depends_on: |
|
|
|
- db |
|
|
|
command: > |
|
|
|
sh -c "python manage.py runserver 0.0.0.0:8000" |
|
|
|
|