Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement