Created
July 1, 2019 19:30
-
-
Save wsvincent/73c417c0b140f345d82c8c15270405c7 to your computer and use it in GitHub Desktop.
Django/Docker
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.7' | |
services: | |
web: | |
build: . | |
command: python /code/manage.py runserver 0.0.0.0:8000 | |
volumes: | |
- .:/code | |
ports: | |
- 8000:8000 | |
depends_on: | |
- db | |
db: | |
image: postgres:11 | |
volumes: | |
- postgres_data:/var/lib/postgresql/data/ | |
volumes: | |
postgres_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment