Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- volumes:
- postgres_data: {}
- postgres_backup: {}
- services:
- postgres:
- build: ./compose/postgres
- volumes:
- - postgres_data:/var/lib/postgresql/data
- - postgres_backup:/backups
- env_file: .env
- django:
- build:
- context: .
- dockerfile: ./compose/django/Dockerfile
- user: django
- depends_on:
- - postgres
- - redis
- command: /gunicorn.sh
- env_file: .env
- nginx:
- build: ./compose/nginx
- depends_on:
- - django
- ports:
- - "0.0.0.0:80:80"
- redis:
- image: redis:latest
- restart: always
- # PostgreSQL
- POSTGRES_PASSWORD=mysecretpass
- POSTGRES_USER=postgresuser
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement