-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathdocker-compose.yml
129 lines (122 loc) Β· 3.77 KB
/
docker-compose.yml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
version: "3.8"
volumes:
mongo:
redis:
traefik:
services:
wildduck:
image: nodemailer/wildduck:v1.34.0
restart: unless-stopped
ports:
- "127.0.0.1:8080:8080"
- "143:143"
- "110:110"
depends_on:
- mongo
- redis
volumes:
- ./config/wildduck:/wildduck/config
labels:
traefik.enable: true
traefik.tcp.routers.wildduck-imaps.entrypoints: imaps
traefik.tcp.routers.wildduck-imaps.rule: HostSNI(`${HOSTNAMES}`)
traefik.tcp.routers.wildduck-imaps.tls.certresolver: letsencrypt
traefik.tcp.routers.wildduck-imaps.service: wildduck-imaps
traefik.tcp.services.wildduck-imaps.loadbalancer.server.port: 143
traefik.tcp.routers.wildduck-pop3s.entrypoints: pop3s
traefik.tcp.routers.wildduck-pop3s.rule: HostSNI(`${HOSTNAMES}`)
traefik.tcp.routers.wildduck-pop3s.tls.certresolver: letsencrypt
traefik.tcp.routers.wildduck-pop3s.service: wildduck-pop3s
traefik.tcp.services.wildduck-pop3s.loadbalancer.server.port: 110
wildduck-webmail:
image: nodemailer/wildduck-webmail:latest
command:
- ""
restart: unless-stopped
depends_on:
- mongo
- redis
- wildduck
volumes:
- ./config/wildduck-webmail:/app/config
labels:
traefik.enable: true
traefik.http.routers.wildduck-webmail.entrypoints: https
traefik.http.routers.wildduck-webmail.rule: Host(`${HOSTNAMES}`)
traefik.http.routers.wildduck-webmail.tls.certresolver: letsencrypt
traefik.http.services.wildduck-webmail.loadbalancer.server.port: 3000
zonemta:
image: nodemailer/zonemta-wildduck
restart: unless-stopped
ports:
- "587:587"
depends_on:
- mongo
- redis
volumes:
- ./config/zone-mta:/app/config
labels:
traefik.enable: true
traefik.tcp.routers.zonemta.entrypoints: smtps
traefik.tcp.routers.zonemta.rule: HostSNI(`${HOSTNAMES}`)
traefik.tcp.routers.zonemta.tls.certresolver: letsencrypt
traefik.tcp.services.zonemta.loadbalancer.server.port: 587
haraka:
image: nodemailer/haraka-wildduck
restart: unless-stopped
ports:
- "25:25"
depends_on:
- mongo
- redis
- rspamd
volumes:
- ./config/haraka:/app/config
rspamd:
image: nodemailer/rspamd
restart: unless-stopped
depends_on:
- redis
volumes:
- ./config/rspamd/override.d:/etc/rspamd/override.d
- ./config/rspamd/worker-normal.conf:/etc/rspamd/worker-normal.conf
- ./config/rspamd/local.d:/etc/rspamd/local.d
mongo:
image: mongo
restart: unless-stopped
volumes:
- mongo:/data/db
redis:
image: redis:alpine
restart: unless-stopped
volumes:
- redis:/data
traefik:
image: traefik
restart: unless-stopped
command:
- "--entrypoints.http.address=:80"
- "--entrypoints.https.address=:443"
- "--entrypoints.imaps.address=:993"
- "--entrypoints.pop3s.address=:995"
- "--entrypoints.smtps.address=:465"
- "--providers.docker"
- "--providers.docker.exposedByDefault=false"
- "--certificatesresolvers.letsencrypt.acme.email=${ACME_EMAIL}"
- "--certificatesresolvers.letsencrypt.acme.storage=/data/acme.json"
- "--certificatesresolvers.letsencrypt.acme.tlschallenge=true"
labels:
traefik.enable: true
traefik.http.middlewares.redirect-to-https.redirectscheme.scheme: https
traefik.http.routers.redirs.entrypoints: http
traefik.http.routers.redirs.middlewares: redirect-to-https
traefik.http.routers.redirs.rule: hostregexp(`{host:.+}`)
ports:
- 80:80/tcp
- 443:443/tcp
- 993:993/tcp
- 995:995/tcp
- 465:465/tcp
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- traefik:/data