forked from Zimbra/zm-docker-zimbra-org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
221 lines (211 loc) · 5.57 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
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
212
213
214
215
216
217
218
219
220
221
version: '3.3'
services:
redis:
image: library/redis
hostname: redis
deploy:
mode: replicated
replicas: 1
zmc-ldap:
image: '${DOCKER_REPO_NS}/zmc-ldap:${DOCKER_BUILD_TAG}'
hostname: 'zmc-ldap'
build:
context: '.'
dockerfile: 'ldap/Dockerfile'
cache_from: [ '${DOCKER_REPO_NS}/zmc-ldap:${DOCKER_CACHE_TAG}' ]
args:
DOCKER_REPO_NS: '${DOCKER_REPO_NS}'
DOCKER_BUILD_TAG: '${DOCKER_BUILD_TAG}'
volumes:
- ${LOCAL_SRC_DIR}:/code
- build:/build
configs:
- domain_name
secrets:
- ca.key
- ca.pem
- ldap.key
- ldap.crt
- ldap.master_password
- ldap.root_password
- ldap.replication_password
- ldap.postfix_password
- ldap.amavis_password
- ldap.nginx_password
zmc-mta:
image: '${DOCKER_REPO_NS}/zmc-mta:${DOCKER_BUILD_TAG}'
hostname: 'zmc-mta'
build:
context: '.'
dockerfile: 'mta/Dockerfile'
cache_from: [ '${DOCKER_REPO_NS}/zmc-mta:${DOCKER_CACHE_TAG}' ]
args:
DOCKER_REPO_NS: '${DOCKER_REPO_NS}'
DOCKER_BUILD_TAG: '${DOCKER_BUILD_TAG}'
volumes:
- ${LOCAL_SRC_DIR}:/code
configs:
- av_notify_email
- zimbra_ldap_userdn
secrets:
- ca.key
- ca.pem
- mta.key
- mta.crt
- ldap.master_password
- ldap.root_password
- ldap.postfix_password
- ldap.amavis_password
zmc-mailbox:
image: '${DOCKER_REPO_NS}/zmc-mailbox:${DOCKER_BUILD_TAG}'
hostname: 'zmc-mailbox'
build:
context: '.'
dockerfile: 'mailbox/Dockerfile'
cache_from: [ '${DOCKER_REPO_NS}/zmc-mailbox:${DOCKER_CACHE_TAG}' ]
args:
DOCKER_REPO_NS: '${DOCKER_REPO_NS}'
DOCKER_BUILD_TAG: '${DOCKER_BUILD_TAG}'
depends_on:
- redis
deploy:
mode: replicated
replicas: 2
volumes:
- ${LOCAL_SRC_DIR}:/code
- blobvolume:/opt/zimbra/store
- tmpvolume:/opt/zimbra/data/tmp
configs:
- domain_name
- admin_account_name
- spam_account_name
- ham_account_name
- virus_quarantine_account_name
- gal_sync_account_name
secrets:
- ca.key
- ca.pem
- mailbox.key
- mailbox.crt
- ldap.master_password
- ldap.root_password
- mysql.password
- admin_account_password
- spam_account_password
- ham_account_password
- virus_quarantine_account_password
zmc-mysql:
image: '${DOCKER_REPO_NS}/zmc-mysql:${DOCKER_BUILD_TAG}'
hostname: 'zmc-mysql'
build:
context: '.'
dockerfile: 'mysql/Dockerfile'
cache_from: [ '${DOCKER_REPO_NS}/zmc-mysql:${DOCKER_CACHE_TAG}' ]
args:
DOCKER_REPO_NS: '${DOCKER_REPO_NS}'
DOCKER_BUILD_TAG: '${DOCKER_BUILD_TAG}'
volumes:
- ${LOCAL_SRC_DIR}:/code
secrets:
- mysql.password
zmc-proxy:
image: '${DOCKER_REPO_NS}/zmc-proxy:${DOCKER_BUILD_TAG}'
hostname: 'zmc-proxy'
build:
context: '.'
dockerfile: 'proxy/Dockerfile'
cache_from: [ '${DOCKER_REPO_NS}/zmc-proxy:${DOCKER_CACHE_TAG}' ]
args:
DOCKER_REPO_NS: '${DOCKER_REPO_NS}'
DOCKER_BUILD_TAG: '${DOCKER_BUILD_TAG}'
volumes:
- ${LOCAL_SRC_DIR}:/code
secrets:
- ca.key
- ca.pem
- proxy.key
- proxy.crt
- ldap.master_password
- ldap.root_password
- ldap.nginx_password
ports:
- '8080:80'
- '8443:443'
- '8071:7071'
- '8000:5000'
zmc-solr:
image: '${DOCKER_REPO_NS}/zmc-solr:${DOCKER_BUILD_TAG}'
hostname: 'zmc-solr'
build:
context: '.'
dockerfile: 'solr/Dockerfile'
cache_from: [ '${DOCKER_REPO_NS}/zmc-solr:${DOCKER_CACHE_TAG}' ]
environment:
- SOLR_MODE=standalone
- SOLR_MEMORY=1g
ports:
- "8983:8983"
secrets:
ca.key:
file: ./.keystore/ca.key
ca.pem:
file: ./.keystore/ca.pem
ldap.key:
file: ./.keystore/ldap.key
ldap.crt:
file: ./.keystore/ldap.crt
mta.key:
file: ./.keystore/mta.key
mta.crt:
file: ./.keystore/mta.crt
mailbox.key:
file: ./.keystore/mailbox.key
mailbox.crt:
file: ./.keystore/mailbox.crt
proxy.key:
file: ./.keystore/proxy.key
proxy.crt:
file: ./.keystore/proxy.crt
ldap.master_password:
file: ./.secrets/ldap.master_password
ldap.root_password:
file: ./.secrets/ldap.root_password
ldap.replication_password:
file: ./.secrets/ldap.replication_password
ldap.postfix_password:
file: ./.secrets/ldap.postfix_password
ldap.amavis_password:
file: ./.secrets/ldap.amavis_password
ldap.nginx_password:
file: ./.secrets/ldap.nginx_password
mysql.password:
file: ./.secrets/mysql.password
admin_account_password:
file: ./.secrets/admin_account_password
spam_account_password:
file: ./.secrets/spam_account_password
ham_account_password:
file: ./.secrets/ham_account_password
virus_quarantine_account_password:
file: ./.secrets/virus_quarantine_account_password
configs:
av_notify_email:
file: ./.config/av_notify_email
domain_name:
file: ./.config/domain_name
admin_account_name:
file: ./.config/admin_account_name
spam_account_name:
file: ./.config/spam_account_name
ham_account_name:
file: ./.config/ham_account_name
virus_quarantine_account_name:
file: ./.config/virus_quarantine_account_name
gal_sync_account_name:
file: ./.config/gal_sync_account_name
zimbra_ldap_userdn:
file: ./.config/zimbra_ldap_userdn
volumes:
blobvolume: {}
tmpvolume: {}
build: {}