Created
June 11, 2019 22:05
-
-
Save kristianpaul/a1e7a9cc0052ccb9c1c1084e3a75e098 to your computer and use it in GitHub Desktop.
This file contains 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 | |
web: | |
build: . | |
command: python manage.py runserver 0.0.0.0:8000 | |
volumes: | |
- .:/code | |
ports: | |
- "8000:8000" | |
depends_on: | |
- db | |
migrate: | |
build: . | |
command: python manage.py migrate --no-input | |
volumes: | |
- .:/code | |
depends_on: | |
- web |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment