Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kristianpaul/a1e7a9cc0052ccb9c1c1084e3a75e098 to your computer and use it in GitHub Desktop.
Save kristianpaul/a1e7a9cc0052ccb9c1c1084e3a75e098 to your computer and use it in GitHub Desktop.
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