Skip to content

Instantly share code, notes, and snippets.

@wsvincent
Created July 1, 2019 19:30
Show Gist options
  • Save wsvincent/73c417c0b140f345d82c8c15270405c7 to your computer and use it in GitHub Desktop.
Save wsvincent/73c417c0b140f345d82c8c15270405c7 to your computer and use it in GitHub Desktop.
Django/Docker
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