Created
August 30, 2017 21:27
-
-
Save citadelgrad/4bfe01611848cf83fda2557b84e43f0d to your computer and use it in GitHub Desktop.
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: "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