2023-10-03 16:32:13 +02:00
|
|
|
|
version: '3.6'
|
|
|
|
|
|
|
|
|
|
networks:
|
2023-10-12 13:15:15 +02:00
|
|
|
|
{{ is_collector_docker_network }}:
|
|
|
|
|
{{ is_collector_haproxy_public_net }}:
|
2023-10-11 13:12:14 +02:00
|
|
|
|
external: true
|
2023-10-03 16:32:13 +02:00
|
|
|
|
|
|
|
|
|
secrets:
|
2023-10-27 18:08:27 +02:00
|
|
|
|
{{ service_prefix }}-ghn-config-{{ scope_name }}:
|
2023-10-03 16:32:13 +02:00
|
|
|
|
external: true
|
2023-10-27 18:08:27 +02:00
|
|
|
|
{{ service_prefix }}-jndi-config-{{ scope_name }}:
|
2023-11-16 18:57:55 +01:00
|
|
|
|
external: true
|
2023-10-27 18:08:27 +02:00
|
|
|
|
{{ service_prefix }}-server-config-{{ scope_name }}:
|
2023-10-03 16:32:13 +02:00
|
|
|
|
external: true
|
2023-11-02 13:55:50 +01:00
|
|
|
|
gcube-dev-legacy-security-key:
|
|
|
|
|
external: true
|
|
|
|
|
{% for item in gcube_dev_security_keys %}
|
|
|
|
|
{{ item.name }}:
|
|
|
|
|
external: true
|
|
|
|
|
{% endfor %}
|
2023-10-03 16:32:13 +02:00
|
|
|
|
|
2023-10-24 09:24:17 +02:00
|
|
|
|
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 }}"
|
|
|
|
|
|
2023-10-03 16:32:13 +02:00
|
|
|
|
services:
|
2023-10-12 13:15:15 +02:00
|
|
|
|
{{ is_collector_docker_service_server_name }}:
|
|
|
|
|
image: {{ is_collector_docker_server_image }}
|
2023-10-03 16:32:13 +02:00
|
|
|
|
networks:
|
2023-10-12 13:15:15 +02:00
|
|
|
|
- {{ is_collector_docker_network }}
|
|
|
|
|
- {{ is_collector_haproxy_public_net }}
|
2023-10-24 09:24:17 +02:00
|
|
|
|
volumes:
|
|
|
|
|
- is_collector_{{ scope_name }}:/gcube-data
|
2023-10-03 16:32:13 +02:00
|
|
|
|
secrets:
|
2023-10-27 18:08:27 +02:00
|
|
|
|
- source: {{ service_prefix }}-ghn-config-{{ scope_name }}
|
2023-10-03 16:32:13 +02:00
|
|
|
|
target: /home/gcube/gCore/config/GHNConfig.xml
|
2023-11-06 12:25:33 +01:00
|
|
|
|
uid: "333"
|
|
|
|
|
gid: "333"
|
2023-11-02 16:59:40 +01:00
|
|
|
|
mode: 0440
|
2023-10-27 18:08:27 +02:00
|
|
|
|
- source: {{ service_prefix }}-jndi-config-{{ scope_name }}
|
2023-11-06 13:40:57 +01:00
|
|
|
|
target: /home/gcube/gCore/{{ config_dir }}/jndi-config.xml
|
2023-11-06 12:25:33 +01:00
|
|
|
|
uid: "333"
|
|
|
|
|
gid: "333"
|
2023-11-16 18:57:55 +01:00
|
|
|
|
mode: 0444
|
2023-10-27 18:08:27 +02:00
|
|
|
|
- source: {{ service_prefix }}-server-config-{{ scope_name }}
|
2023-10-03 16:32:13 +02:00
|
|
|
|
target: /home/gcube/gCore/etc/globus_wsrf_core/server-config.wsdd
|
2023-11-06 12:25:33 +01:00
|
|
|
|
uid: "333"
|
|
|
|
|
gid: "333"
|
2023-11-02 16:59:40 +01:00
|
|
|
|
mode: 0440
|
2023-11-02 13:55:50 +01:00
|
|
|
|
- source: gcube-dev-legacy-security-key
|
|
|
|
|
target: /home/gcube/gCore/config/symm.key
|
2023-11-06 12:25:33 +01:00
|
|
|
|
uid: "333"
|
|
|
|
|
gid: "333"
|
2023-11-02 16:59:40 +01:00
|
|
|
|
mode: 0440
|
2023-11-02 13:55:50 +01:00
|
|
|
|
{% for item in gcube_dev_security_keys %}
|
|
|
|
|
- source: {{ item.name }}
|
|
|
|
|
target: /home/gcube/gCore/config/{{ item.name }}
|
2023-11-06 12:25:33 +01:00
|
|
|
|
uid: "333"
|
|
|
|
|
gid: "333"
|
2023-11-02 16:59:40 +01:00
|
|
|
|
mode: 0440
|
2023-11-02 13:55:50 +01:00
|
|
|
|
{% endfor %}
|
2023-10-03 16:32:13 +02:00
|
|
|
|
deploy:
|
|
|
|
|
mode: replicated
|
|
|
|
|
replicas: 1
|
2023-10-06 15:41:40 +02:00
|
|
|
|
endpoint_mode: dnsrr
|
2023-10-03 16:32:13 +02:00
|
|
|
|
placement:
|
2023-10-06 16:16:57 +02:00
|
|
|
|
constraints: [node.role == worker]
|
2023-10-03 16:32:13 +02:00
|
|
|
|
restart_policy:
|
|
|
|
|
condition: on-failure
|
|
|
|
|
delay: 5s
|
|
|
|
|
max_attempts: 5
|
|
|
|
|
window: 120s
|
2023-10-06 15:41:40 +02:00
|
|
|
|
logging:
|
|
|
|
|
driver: 'journald'
|