-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.production.yml
More file actions
61 lines (53 loc) · 1.63 KB
/
docker-compose.production.yml
File metadata and controls
61 lines (53 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: '3.6'
# PRODUCTION OVERRIDE FILE
# Move this file to docker-compose.override.yml in production!
services:
# Reverse proxy top-level container
#
gunicorn:
# "image" here overrides build: in docker-compose.yml, unless --build is passed :)
image: durhamarc/manyfews-gunicorn:latest
restart: unless-stopped
volumes:
- app:/app/
celery:
image: durhamarc/manyfews-celery:latest
restart: unless-stopped
volumes:
- app:/app/
command:
- "celery -A manyfews worker -l INFO --scheduler django_celery_beat.schedulers:DatabaseScheduler -E"
celery_beat:
image: durhamarc/manyfews-celery:latest
restart: unless-stopped
volumes:
- app:/app/
web:
image: durhamarc/manyfews-web:latest
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik_traefik"
- "traefik.http.routers.web-http.entrypoints=http"
- "traefik.http.routers.web-http.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.web-http.middlewares=httpsRedirect@file"
- "traefik.http.routers.web.entrypoints=https"
- "traefik.http.routers.web.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.web.tls=true"
- "traefik.http.routers.web.tls.certresolver=letsencrypt"
- "traefik.http.routers.web.middlewares=secured@file"
- "traefik.http.services.web.loadbalancer.server.port=80"
- "com.centurylink.watchtower.enable=true"
networks:
- backend
- traefik
networks:
traefik:
name: traefik_traefik
external: true
volumes:
app:
driver_opts:
type: none
device: ${PWD}/manyfews/
o: bind