comixify/docker-compose-prod.yml

55 lines
960 B
YAML
Raw Normal View History

version: '2.3'
services:
db:
image: postgres:10
env_file:
- db.env
networks:
- db_network
volumes:
- db_volume:/var/lib/postgresql/data
web:
build: .
runtime: nvidia
volumes:
- static_volume:/comixify/static
- media_volume:/comixify/media
networks:
- nginx_network
- db_network
depends_on:
- db
environment:
- DEBUG=false
- PYTHONUNBUFFERED=1
tty: true
nginx:
image: nginx
ports:
- 80:80
2018-09-25 09:14:44 +00:00
- 443:443
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- static_volume:/comixify/static
- media_volume:/comixify/media
2018-09-25 09:14:44 +00:00
- /etc/certs-data/:/data/letsencrypt/
- /etc/letsencrypt/:/etc/letsencrypt/
depends_on:
- web
networks:
- nginx_network
networks:
nginx_network:
driver: bridge
db_network:
driver: bridge
volumes:
db_volume:
static_volume:
2018-09-25 09:14:44 +00:00
media_volume: