56 lines
1.5 KiB
Django/Jinja
56 lines
1.5 KiB
Django/Jinja
version: '3.6'
|
||
|
||
networks:
|
||
{{ is_collector_docker_network }}:
|
||
{{ is_collector_haproxy_public_net }}:
|
||
external: true
|
||
|
||
secrets:
|
||
ghn-config-{{ scope_name }}:
|
||
external: true
|
||
jndi-config-{{ scope_name }}:
|
||
external: true
|
||
server-config-{{ scope_name }}:
|
||
external: true
|
||
|
||
volumes:
|
||
is_collector_{{ scope_name }}:
|
||
driver: local
|
||
driver_opts:
|
||
type: nfs4
|
||
# o: "nfsvers=4,addr=192.168.1.222,rw,nolock,soft"
|
||
o: "nfsvers=4,addr=192.168.1.222,rw"
|
||
device: ":/nfs_is_collector_{{ scope_name }}"
|
||
|
||
services:
|
||
{{ is_collector_docker_service_server_name }}:
|
||
image: {{ is_collector_docker_server_image }}
|
||
networks:
|
||
- {{ is_collector_docker_network }}
|
||
- {{ is_collector_haproxy_public_net }}
|
||
volumes:
|
||
- is_collector_{{ scope_name }}:/gcube-data
|
||
secrets:
|
||
- source: ghn-config-{{ scope_name }}
|
||
target: /home/gcube/gCore/config/GHNConfig.xml
|
||
mode: 0444
|
||
- source: jndi-config-{{ scope_name }}
|
||
target: /home/gcube/gCore/etc/is-collector-service/jndi-config.xml
|
||
mode: 0444
|
||
- source: server-config-{{ scope_name }}
|
||
target: /home/gcube/gCore/etc/globus_wsrf_core/server-config.wsdd
|
||
mode: 0444
|
||
deploy:
|
||
mode: replicated
|
||
replicas: 1
|
||
endpoint_mode: dnsrr
|
||
placement:
|
||
constraints: [node.role == worker]
|
||
restart_policy:
|
||
condition: on-failure
|
||
delay: 5s
|
||
max_attempts: 5
|
||
window: 120s
|
||
logging:
|
||
driver: 'journald'
|