Last active
March 28, 2018 21:03
-
-
Save bmihelac/97bbca72edd997f7d4692719fce5a7e9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
db: | |
image: postgres:9.6.5 | |
volumes: | |
- postgres_data:/var/lib/postgresql/data/ | |
web: | |
build: . | |
command: bash -c "python /code/manage.py migrate --noinput && python /code/manage.py runserver 0.0.0.0:8000" | |
volumes: | |
- .:/code | |
ports: | |
- "8000:8000" | |
depends_on: | |
- db | |
volumes: | |
postgres_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There should be only one command, use "bash -c" to enter multiple commands.