-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.temp.yml
211 lines (196 loc) · 4.71 KB
/
docker-compose.temp.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
# This file is auto-generated by the Mailu configuration wizard.
# Please read the documentation before attempting any change.
# Generated for compose flavor
version: '2.2'
services:
# External dependencies
redis:
image: redis:alpine
restart: always
volumes:
- "$STORAGE_PATH/redis:/data"
depends_on:
- resolver
dns:
- $HNS_DNS
- 192.168.203.254
# Core services
front:
image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}nginx:${MAILU_VERSION:-2.0}
restart: always
env_file: mailu.env
logging:
driver: journald
options:
tag: mailu-front
ports:
- "$IP:80:80"
- "$IP:443:443"
- "$IP:25:25"
- "$IP:465:465"
- "$IP:587:587"
- "$IP:110:110"
- "$IP:995:995"
- "$IP:143:143"
- "$IP:993:993"
networks:
- default
- webmail
- radicale
volumes:
- "$STORAGE_PATH/certs:/certs"
- "$STORAGE_PATH/overrides/nginx:/overrides:ro"
- ./cert.crt:/etc/ssl/cert.crt:ro
- ./cert.key:/etc/ssl/cert.key:ro
- ./nginx.conf:/etc/nginx/nginx1.conf:ro
- ./tls.conf:/etc/nginx/tls1.conf:ro
depends_on:
- resolver
dns:
- $HNS_DNS
- 192.168.203.254
command:
[
"/bin/sh",
"-c",
"/start.py & sleep 20 && cd /etc/nginx/ && rm nginx.conf && cp nginx1.conf nginx.conf && rm tls.conf && cp tls1.conf tls.conf && nginx -s reload && sleep infinity"
]
resolver:
image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}unbound:${MAILU_VERSION:-2.0}
env_file: mailu.env
restart: always
networks:
default:
ipv4_address: 192.168.203.254
admin:
image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}admin:${MAILU_VERSION:-2.0}
restart: always
env_file: mailu.env
logging:
driver: journald
options:
tag: mailu-admin
volumes:
- "$STORAGE_PATH/data:/data"
- "$STORAGE_PATH/dkim:/dkim"
depends_on:
- redis
- resolver
dns:
- 192.168.203.254
imap:
image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}dovecot:${MAILU_VERSION:-2.0}
restart: always
env_file: mailu.env
logging:
driver: journald
options:
tag: mailu-imap
volumes:
- "$STORAGE_PATH/mail:/mail"
- "$STORAGE_PATH/overrides/dovecot:/overrides:ro"
depends_on:
- front
- resolver
dns:
- $HNS_DNS
- 192.168.203.254
smtp:
image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}postfix:${MAILU_VERSION:-2.0}
restart: always
env_file: mailu.env
logging:
driver: journald
options:
tag: mailu-smtp
volumes:
- "$STORAGE_PATH/mailqueue:/queue"
- "$STORAGE_PATH/overrides/postfix:/overrides:ro"
depends_on:
- front
- resolver
dns:
- $HNS_DNS
- 192.168.203.254
oletools:
image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}oletools:${MAILU_VERSION:-2.0}
hostname: oletools
restart: always
networks:
- noinet
depends_on:
- resolver
dns:
- $HNS_DNS
- 192.168.203.254
antispam:
image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}rspamd:${MAILU_VERSION:-2.0}
hostname: antispam
restart: always
env_file: mailu.env
logging:
driver: journald
options:
tag: mailu-antispam
networks:
- default
- noinet
volumes:
- "$STORAGE_PATH/filter:/var/lib/rspamd"
- "$STORAGE_PATH/overrides/rspamd:/overrides:ro"
depends_on:
- front
- redis
- oletools
- resolver
dns:
- $HNS_DNS
- 192.168.203.254
# Optional services
webdav:
image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}radicale:${MAILU_VERSION:-2.0}
restart: always
volumes:
- "$STORAGE_PATH/dav:/data"
networks:
- radicale
fetchmail:
image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}fetchmail:${MAILU_VERSION:-2.0}
restart: always
env_file: mailu.env
volumes:
- "$STORAGE_PATH/data/fetchmail:/data"
depends_on:
- admin
- smtp
- imap
- resolver
dns:
- $HNS_DNS
- 192.168.203.254
# Webmail
webmail:
image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}webmail:${MAILU_VERSION:-2.0}
restart: always
env_file: mailu.env
volumes:
- "$STORAGE_PATH/webmail:/data"
- "$STORAGE_PATH/overrides/roundcube:/overrides:ro"
networks:
- webmail
depends_on:
- front
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.203.0/24
radicale:
driver: bridge
webmail:
driver: bridge
noinet:
driver: bridge
internal: true