@@ -144,7 +144,7 @@ services:
144
144
env_file :
145
145
- migrid-httpd.env
146
146
# IMPORTANT: please ONLY run with this test@ user for non-public hosts
147
- command : /app/docker-entry.sh -V -u ${MIG_TEST_USER} -p ${MIG_TEST_USER_PASSWORD} -s "sftp ftps webdavs"
147
+ command : /app/docker-entry.sh -V -c - u ${MIG_TEST_USER} -p ${MIG_TEST_USER_PASSWORD} -s "sftp ftps webdavs"
148
148
# NOTE: public hosts should create users through sign up and run like this
149
149
# command: /app/docker-entry.sh -V
150
150
@@ -160,7 +160,12 @@ services:
160
160
# openid sftp sftpsubsys webdavs ftps notify imnotify vmproxy
161
161
RUN_SERVICES : openid rsyslogd
162
162
depends_on :
163
- - migrid
163
+ # IMPORTANT: daemons may require DNS to bind to domain ports
164
+ devdns :
165
+ condition : service_started
166
+ # IMPORTANT: finish volume init before launch as explained above
167
+ migrid-volume-init :
168
+ condition : service_completed_successfully
164
169
ports :
165
170
# NOTE: expose the unique raw port(s) to host
166
171
- " ${OPENID_PORT}:${OPENID_PORT}"
@@ -205,7 +210,12 @@ services:
205
210
# openid sftp sftpsubsys webdavs ftps notify imnotify vmproxy
206
211
RUN_SERVICES : sftp sftpsubsys rsyslogd
207
212
depends_on :
208
- - migrid
213
+ # IMPORTANT: daemons may require DNS to bind to domain ports
214
+ devdns :
215
+ condition : service_started
216
+ # IMPORTANT: finish volume init before launch as explained above
217
+ migrid-volume-init :
218
+ condition : service_completed_successfully
209
219
ports :
210
220
# NOTE: expose the unique raw port(s) to host
211
221
- " ${SFTP_PORT}:${SFTP_PORT}"
@@ -255,11 +265,20 @@ services:
255
265
# openid sftp sftpsubsys webdavs ftps notify imnotify vmproxy
256
266
RUN_SERVICES : ftps rsyslogd
257
267
depends_on :
258
- - migrid
268
+ # IMPORTANT: daemons may require DNS to bind to domain ports
269
+ devdns :
270
+ condition : service_started
271
+ # IMPORTANT: finish volume init before launch as explained above
272
+ migrid-volume-init :
273
+ condition : service_completed_successfully
259
274
ports :
260
- # NOTE: expose the unique raw port(s) to host
275
+ # NOTE: expose the unique raw port(s) to host
261
276
- " ${FTPS_CTRL_PORT}:${FTPS_CTRL_PORT}"
262
- - " ${FTPS_PASSIVE_PORTS}:${FTPS_PASSIVE_PORTS}"
277
+ # IMPORTANT: FTPS_PASV_PORTS is colon-separated but range needs hyphen
278
+ # NOTE: compose does not support shell-style replacement so we can't use
279
+ # - "${FTPS_PASV_PORTS/:/-}:${FTPS_PASV_PORTS/:/-}"
280
+ # hard-code them for now.
281
+ - " 8100-8399"
263
282
networks :
264
283
default :
265
284
aliases :
@@ -305,7 +324,12 @@ services:
305
324
# openid sftp sftpsubsys webdavs ftps notify imnotify vmproxy
306
325
RUN_SERVICES : webdavs rsyslogd
307
326
depends_on :
308
- - migrid
327
+ # IMPORTANT: daemons may require DNS to bind to domain ports
328
+ devdns :
329
+ condition : service_started
330
+ # IMPORTANT: finish volume init before launch as explained above
331
+ migrid-volume-init :
332
+ condition : service_completed_successfully
309
333
ports :
310
334
# NOTE: expose the unique raw port(s) to host
311
335
- " ${DAVS_PORT}:${DAVS_PORT}"
@@ -353,7 +377,11 @@ services:
353
377
# from racing apache during start up? Apparently that will not work
354
378
# with on-going jupyter integration due to swarm mode, however.
355
379
depends_on :
356
- - migrid
380
+ # IMPORTANT: daemons may require DNS to bind to domain ports
381
+ devdns :
382
+ condition : service_started
383
+ migrid :
384
+ condition : service_started
357
385
ports :
358
386
# NOTE: expose the unique raw port(s) to host
359
387
- " 80:80"
0 commit comments