index.community/docker-compose.production.yml

50 lines
1 KiB
YAML
Raw Normal View History

2019-02-20 16:18:12 +00:00
version: '3'
services:
db:
restart: always
networks:
- database_network
2019-02-21 10:26:55 +00:00
django:
2019-02-20 16:18:12 +00:00
restart: always
volumes:
- ./config/gunicorn.conf.py:/config/gunicorn.conf.py
2019-02-22 15:37:10 +00:00
- gunicorn-socket:/var/gunicorn
- staticfiles:/code/backend/static
2019-02-20 16:18:12 +00:00
networks:
- database_network
2019-02-22 15:37:10 +00:00
- server_network
2019-02-20 16:18:12 +00:00
environment:
- ENVIRONMENT=production
- DJANGO_SETTINGS_MODULE=backend.settings.production
2019-02-22 15:37:10 +00:00
caddy:
restart: always
image: abiosoft/caddy:0.11.4-no-stats
ports:
- "80:80"
- "443:443"
volumes:
- ./config/Caddyfile:/etc/Caddyfile
- staticfiles:/srv/static
- caddycerts:/etc/caddycerts
networks:
- server_network
depends_on:
- django
environment:
- ACME_AGREE
- CADDYPATH=/etc/caddycerts
2019-02-21 14:28:36 +00:00
gephi:
networks:
- database_network
2019-02-22 15:37:10 +00:00
depends_on:
- db
2019-02-20 16:18:12 +00:00
networks:
database_network:
driver: bridge
2019-02-22 15:37:10 +00:00
server_network:
2019-02-20 16:18:12 +00:00
driver: bridge
volumes:
2019-02-20 20:04:07 +00:00
gunicorn-socket:
2019-02-22 15:37:10 +00:00
caddycerts:
staticfiles: