@@ -33,6 +33,7 @@ services:
3333 # Available target service names follow migrid init script and are:
3434 # httpd script monitor sshmux events cron transfers janitor
3535 # openid sftp sftpsubsys webdavs ftps notify imnotify vmproxy quota
36+ # accounting
3637 RUN_SERVICES :
3738 volumes :
3839 - type : volume
@@ -154,6 +155,9 @@ services:
154155 - type : volume
155156 source : quota_home
156157 target : /home/mig/state/quota_home
158+ - type : volume
159+ source : accounting_home
160+ target : /home/mig/state/accounting_home
157161 - type : volume
158162 source : sandbox_home
159163 target : /home/mig/state/sandbox_home
@@ -236,6 +240,7 @@ services:
236240 # Available target service names follow migrid init script and are:
237241 # httpd script monitor sshmux events cron transfers janitor
238242 # openid sftp sftpsubsys webdavs ftps notify imnotify vmproxy quota
243+ # accounting
239244 RUN_SERVICES : openid rsyslogd
240245 depends_on :
241246 - migrid
@@ -306,6 +311,9 @@ services:
306311 # source: quota_home
307312 # target: /home/mig/state/quota_home
308313 # - type: volume
314+ # source: accounting_home
315+ # target: /home/mig/state/accounting_home
316+ # - type: volume
309317 # source: sandbox_home
310318 # target: /home/mig/state/sandbox_home
311319 # - type: volume
@@ -381,6 +389,7 @@ services:
381389 # Available target service names follow migrid init script and are:
382390 # httpd script monitor sshmux events cron transfers janitor
383391 # openid sftp sftpsubsys webdavs ftps notify imnotify vmproxy quota
392+ # accounting
384393 RUN_SERVICES : sftp sftpsubsys rsyslogd
385394 depends_on :
386395 - migrid
@@ -452,6 +461,9 @@ services:
452461 # source: quota_home
453462 # target: /home/mig/state/quota_home
454463 # - type: volume
464+ # source: accounting_home
465+ # target: /home/mig/state/accounting_home
466+ # - type: volume
455467 # source: sandbox_home
456468 # target: /home/mig/state/sandbox_home
457469 # - type: volume
@@ -527,6 +539,7 @@ services:
527539 # Available target service names follow migrid init script and are:
528540 # httpd script monitor sshmux events cron transfers janitor
529541 # openid sftp sftpsubsys webdavs ftps notify imnotify vmproxy quota
542+ # accounting
530543 RUN_SERVICES : ftps rsyslogd
531544 depends_on :
532545 - migrid
@@ -597,6 +610,9 @@ services:
597610 # source: quota_home
598611 # target: /home/mig/state/quota_home
599612 # - type: volume
613+ # source: accounting_home
614+ # target: /home/mig/state/accounting_home
615+ # - type: volume
600616 # source: sandbox_home
601617 # target: /home/mig/state/sandbox_home
602618 # - type: volume
@@ -672,6 +688,7 @@ services:
672688 # Available target service names follow migrid init script and are:
673689 # httpd script monitor sshmux events cron transfers janitor
674690 # openid sftp sftpsubsys webdavs ftps notify imnotify vmproxy quota
691+ # accounting
675692 RUN_SERVICES : webdavs rsyslogd
676693 depends_on :
677694 - migrid
@@ -817,6 +834,7 @@ services:
817834 # Available target service names follow migrid init script and are:
818835 # httpd script monitor sshmux events cron transfers janitor
819836 # openid sftp sftpsubsys webdavs ftps notify imnotify vmproxy quota
837+ # accounting
820838 RUN_SERVICES : quota rsyslogd
821839 depends_on :
822840 - migrid
@@ -870,6 +888,58 @@ services:
870888 target : /home/mig/state/vgrid_files_writable
871889 command : /app/docker-entry.sh -k
872890
891+ migrid-accounting :
892+ container_name : migrid-accounting
893+ image : ${CONTAINER_REGISTRY}/ucphhpc/migrid${CONTAINER_TAG}
894+ network_mode : host
895+ environment :
896+ TZ : ${TZ}
897+ # RUN_SERVICES specifies which daemons to launch
898+ # Available target service names follow migrid init script and are:
899+ # httpd script monitor sshmux events cron transfers janitor
900+ # openid sftp sftpsubsys webdavs ftps notify imnotify vmproxy quota
901+ # accounting
902+ RUN_SERVICES : accounting rsyslogd
903+ depends_on :
904+ # IMPORTANT: finish volume init before migrid launch as explained above
905+ migrid-volume-init :
906+ condition : service_completed_successfully
907+ volumes :
908+ - type : volume
909+ source : mig
910+ target : /home/mig/mig
911+ - type : volume
912+ source : hotfixes
913+ target : /hotfixes
914+ - type : volume
915+ source : mig-server-extconfs
916+ target : /home/mig/mig/server/MiGserver.d
917+ - type : volume
918+ source : state
919+ target : /home/mig/state
920+ - type : volume
921+ source : vgrid_home
922+ target : /home/mig/state/vgrid_home
923+ - type : volume
924+ source : freeze_home
925+ target : /home/mig/state/freeze_home
926+ - type : volume
927+ source : user_settings
928+ target : /home/mig/state/user_settings
929+ - type : volume
930+ source : migrid-accounting-syslog
931+ target : /var/log
932+ - type : volume
933+ source : log
934+ target : /home/mig/state/log
935+ - type : volume
936+ source : quota_home
937+ target : /home/mig/state/quota_home
938+ - type : volume
939+ source : accounting_home
940+ target : /home/mig/state/accounting_home
941+ command : /app/docker-entry.sh -k
942+
873943# NOTE: not used in stand-alone production mode
874944# nginx-proxy:
875945# image: ${CONTAINER_REGISTRY}/jwilder/nginx-proxy
@@ -1045,6 +1115,14 @@ volumes:
10451115 device : ${PERSISTENT_ROOT}/quota_home
10461116 o : bind
10471117
1118+ accounting_home :
1119+ # Volume used to contain the migrid accounting_home
1120+ driver : local
1121+ driver_opts :
1122+ type : none
1123+ device : ${PERSISTENT_ROOT}/accounting_home
1124+ o : bind
1125+
10481126 sandbox_home :
10491127 # Volume used to contain the migrid sandbox_home
10501128 driver : local
@@ -1222,9 +1300,17 @@ volumes:
12221300 o : bind
12231301
12241302 migrid-quota-syslog :
1225- # Volume used for exposing migrid lustre quota container system log
1303+ # Volume used for exposing migrid quota container system log
12261304 driver : local
12271305 driver_opts :
12281306 type : none
12291307 device : ${LOG_ROOT}/syslog/migrid-quota
12301308 o : bind
1309+
1310+ migrid-accounting-syslog :
1311+ # Volume used for exposing migrid accounting container system log
1312+ driver : local
1313+ driver_opts :
1314+ type : none
1315+ device : ${LOG_ROOT}/syslog/migrid-accounting
1316+ o : bind
0 commit comments