-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathcontainer-compose.yml
More file actions
255 lines (255 loc) · 5.89 KB
/
container-compose.yml
File metadata and controls
255 lines (255 loc) · 5.89 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
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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
services:
nginx:
build:
context: extenginx
additional_contexts:
- nginx_snippet_source=./nginx_snippets
- nginx_webroot_content=./docs
dockerfile: Containerfile
target: nginx
args:
NGINX_HOSTNAME: ${SINGULARITY_HOSTNAME}
NGINX_HTTPS_LISTEN: 'unix:/run/nginx/socks/https.sock'
NGINX_SMTPS_LISTEN: 'unix:/run/nginx/socks/smtps.sock'
NGINX_POP3S_LISTEN: 'unix:/run/nginx/socks/pop3s.sock'
environment:
TZ: ${SINGULARITY_TIMEZONE}
volumes:
- type: bind
source: ./socks
target: /run/nginx/socks
read_only: false
bind:
selinux: z
- type: volume
source: ssl-certs
target: /etc/ssl/nginx
read_only: true
depends_on:
- orbit
- smtp
- pop
networks:
- orbit
- smtp
- pop
- submatrix
orbit:
build:
context: orbit
dockerfile: Containerfile
additional_contexts:
- orbit_docs_source=./docs
- mailman_source=./mailman
- denis_source=./denis
target: orbit
args:
orbit_version_info: "singularity ${SINGULARITY_VERSION} ${SINGULARITY_DEPLOYMENT_STATUS} https://github.com/underground-software/singularity"
environment:
TZ: ${SINGULARITY_TIMEZONE}
HOSTNAME: ${SINGULARITY_HOSTNAME}
volumes:
- type: volume
source: orbit-db
target: /var/lib/orbit
read_only: false
- type: volume
source: submissions-db
target: /var/lib/mailman
read_only: true
- type: volume
source: denis-db
target: /var/lib/denis
read_only: true
- type: volume
source: git-repos
target: /var/lib/git
read_only: true
depends_on:
- git
networks:
- orbit
smtp:
build:
context: smtp
dockerfile: Containerfile
additional_contexts:
- tcp_server_source=./tcp_server
- journal_source=./journal
target: smtp
args:
hostname: ${SINGULARITY_HOSTNAME}
LISTEN_PORT: 1465
volumes:
- type: volume
source: email-mail
target: /var/lib/email/mail
read_only: false
- type: volume
source: email-logs
target: /var/lib/email/logs
read_only: false
- type: volume
source: email-patchsets
target: /var/lib/email/patchsets
read_only: false
networks:
- smtp
pop:
build:
context: pop
dockerfile: Containerfile
additional_contexts:
- tcp_server_source=./tcp_server
- journal_source=./journal
target: pop
args:
LISTEN_PORT: 1995
volumes:
- type: volume
source: email-mail
target: /var/lib/email/mail
read_only: true
- type: volume
source: email-journal
target: /var/lib/email/journal
read_only: true
depends_on:
- smtp
- denis
networks:
- pop
submatrix:
build:
context: submatrix
dockerfile: Containerfile
args:
MATRIX_HOSTNAME: ${SINGULARITY_HOSTNAME}
environment:
TZ: ${SINGULARITY_TIMEZONE}
volumes:
- type: volume
source: submatrix-data
target: /var/synapse
read_only: false
depends_on:
- orbit
networks:
- submatrix
- orbit
mailman:
build:
context: mailman
dockerfile: Containerfile
additional_contexts:
- watcher_source=./watcher
- denis_source=./denis
- orbit_source=./orbit
environment:
TZ: ${SINGULARITY_TIMEZONE}
volumes:
- type: volume
source: email-mail
target: /var/lib/email/mail
read_only: true
- type: volume
source: email-logs
target: /var/lib/email/logs
read_only: true
- type: volume
source: denis-db
target: /var/lib/denis
read_only: true
- type: volume
source: orbit-db
target: /var/lib/orbit
read_only: true
- type: volume
source: submissions-db
target: /var/lib/mailman
read_only: false
depends_on:
- smtp
- denis
networks:
- mailman
- git
denis:
build:
context: denis
dockerfile: Containerfile
additional_contexts:
- run_at_source=./run-at
- journal_source=./journal
- mailman_source=./mailman
- orbit_source=./orbit
environment:
TZ: ${SINGULARITY_TIMEZONE}
SINGULARITY_HOSTNAME: ${SINGULARITY_HOSTNAME}
volumes:
- type: volume
source: denis-db
target: /var/lib/denis
read_only: false
- type: volume
source: email-journal
target: /var/lib/email/journal
read_only: false
- type: volume
source: email-logs
target: /var/lib/email/logs
read_only: true
- type: volume
source: email-mail
target: /var/lib/email/mail
read_only: true
- type: volume
source: email-patchsets
target: /var/lib/email/patchsets
read_only: true
- type: volume
source: orbit-db
target: /var/lib/orbit
read_only: true
- type: volume
source: submissions-db
target: /var/lib/mailman
read_only: true
networks:
- denis
- git
git:
build:
context: git
dockerfile: Containerfile
additional_contexts:
- git_singularity_git_dir=./gitdir
- git_course_repositories=repos
volumes:
- type: volume
source: git-repos
target: /var/lib/git/
read_only: false
networks:
- git
ports:
- "8000"
networks:
orbit:
smtp:
pop:
submatrix:
mailman:
denis:
git:
volumes:
ssl-certs:
email-mail:
email-logs:
email-journal:
email-patchsets:
orbit-db:
submissions-db:
submatrix-data:
denis-db:
git-repos: