Skip to content

Instantly share code, notes, and snippets.

@citadelgrad
Created August 30, 2017 21:27
Show Gist options
  • Save citadelgrad/4bfe01611848cf83fda2557b84e43f0d to your computer and use it in GitHub Desktop.
Save citadelgrad/4bfe01611848cf83fda2557b84e43f0d to your computer and use it in GitHub Desktop.
version: "2"
services:
db:
image: postgres
volumes:
- db_data:/var/lib/postgresql/data
- ./backup:/backup
ports:
- "8001:5432"
environment:
- POSTGRES_DB=happyherbivore
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=password
app:
dns: 8.8.8.8
ports:
- "8000:8000"
build: .
environment:
DB_HOST: db
DB_USER: admin
DB_PASS: password
DB_NAME: happyherbivore
ALL-YOUR-SETTINGS
volumes:
- .:/app
command: python manage.py runserver_plus 0.0.0.0:8000
volumes:
db_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment