2023-11-16 18:57:55 +01:00
|
|
|
|
version: '3.6'
|
|
|
|
|
|
|
|
|
|
networks:
|
2023-11-17 13:18:45 +01:00
|
|
|
|
{{ resource_manager_docker_network }}:
|
|
|
|
|
{{ resource_manager_haproxy_public_net }}:
|
2023-11-16 18:57:55 +01:00
|
|
|
|
external: true
|
|
|
|
|
|
|
|
|
|
secrets:
|
2023-11-17 13:42:32 +01:00
|
|
|
|
{{ service_prefix }}-ghn-config-{{ scope_name }}:
|
2023-11-16 18:57:55 +01:00
|
|
|
|
external: true
|
2023-11-17 13:42:32 +01:00
|
|
|
|
{{ service_prefix }}-jndi-config-{{ scope_name }}:
|
2023-11-16 18:57:55 +01:00
|
|
|
|
external: true
|
2023-11-17 13:42:32 +01:00
|
|
|
|
{{ service_prefix }}-server-config-{{ scope_name }}:
|
2023-11-16 18:57:55 +01:00
|
|
|
|
external: true
|
2023-12-15 17:09:42 +01:00
|
|
|
|
gcube-legacy-security-key:
|
2023-11-16 18:57:55 +01:00
|
|
|
|
external: true
|
2023-12-15 17:09:42 +01:00
|
|
|
|
{% for item in gcube_security_keys %}
|
2023-11-16 18:57:55 +01:00
|
|
|
|
{{ item.name }}:
|
|
|
|
|
external: true
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
2023-11-22 12:54:31 +01:00
|
|
|
|
volumes:
|
|
|
|
|
gcore_persisted:
|
|
|
|
|
driver: local
|
|
|
|
|
driver_opts:
|
|
|
|
|
type: nfs4
|
|
|
|
|
# o: "nfsvers=4,addr=192.168.1.222,rw,nolock,soft"
|
2023-12-15 17:09:42 +01:00
|
|
|
|
o: "nfsvers=4,addr={{ nfs_server_ip }},rw"
|
2023-11-24 08:36:14 +01:00
|
|
|
|
device: ":/nfs_{{ service_prefix | replace("-", "_") }}_{{ scope_name }}"
|
2023-11-22 12:54:31 +01:00
|
|
|
|
|
2023-11-16 18:57:55 +01:00
|
|
|
|
services:
|
2023-11-17 13:18:45 +01:00
|
|
|
|
{{ resource_manager_docker_service_server_name }}:
|
|
|
|
|
image: {{ resource_manager_docker_server_image }}
|
2023-11-16 18:57:55 +01:00
|
|
|
|
networks:
|
2023-11-17 13:18:45 +01:00
|
|
|
|
- {{ resource_manager_docker_network }}
|
|
|
|
|
- {{ resource_manager_haproxy_public_net }}
|
2023-11-22 12:54:31 +01:00
|
|
|
|
volumes:
|
|
|
|
|
- gcore_persisted:/gcube-data
|
|
|
|
|
environment:
|
|
|
|
|
- NFS_GCORE_PATH=/gcube-data/states/{{ gcore_host }}
|
2023-11-16 18:57:55 +01:00
|
|
|
|
secrets:
|
2023-11-17 13:42:32 +01:00
|
|
|
|
- source: {{ service_prefix }}-ghn-config-{{ scope_name }}
|
2023-11-16 18:57:55 +01:00
|
|
|
|
target: /home/gcube/gCore/config/GHNConfig.xml
|
|
|
|
|
uid: "333"
|
|
|
|
|
gid: "333"
|
|
|
|
|
mode: 0440
|
2023-11-17 13:42:32 +01:00
|
|
|
|
- source: {{ service_prefix }}-jndi-config-{{ scope_name }}
|
2023-11-16 18:57:55 +01:00
|
|
|
|
target: /home/gcube/gCore/{{ config_dir }}/jndi-config.xml
|
|
|
|
|
uid: "333"
|
|
|
|
|
gid: "333"
|
|
|
|
|
mode: 0444
|
2023-11-17 13:42:32 +01:00
|
|
|
|
- source: {{ service_prefix }}-server-config-{{ scope_name }}
|
2023-11-16 18:57:55 +01:00
|
|
|
|
target: /home/gcube/gCore/etc/globus_wsrf_core/server-config.wsdd
|
|
|
|
|
uid: "333"
|
|
|
|
|
gid: "333"
|
|
|
|
|
mode: 0440
|
2023-12-15 17:09:42 +01:00
|
|
|
|
- source: gcube-legacy-security-key
|
2023-11-16 18:57:55 +01:00
|
|
|
|
target: /home/gcube/gCore/config/symm.key
|
|
|
|
|
uid: "333"
|
|
|
|
|
gid: "333"
|
|
|
|
|
mode: 0440
|
2023-12-15 17:09:42 +01:00
|
|
|
|
{% for item in gcube_security_keys %}
|
2023-11-16 18:57:55 +01:00
|
|
|
|
- source: {{ item.name }}
|
|
|
|
|
target: /home/gcube/gCore/config/{{ item.name }}
|
|
|
|
|
uid: "333"
|
|
|
|
|
gid: "333"
|
|
|
|
|
mode: 0440
|
|
|
|
|
{% endfor %}
|
|
|
|
|
deploy:
|
|
|
|
|
mode: replicated
|
|
|
|
|
replicas: 1
|
|
|
|
|
endpoint_mode: dnsrr
|
|
|
|
|
placement:
|
|
|
|
|
constraints: [node.role == worker]
|
|
|
|
|
restart_policy:
|
2024-01-26 11:56:22 +01:00
|
|
|
|
condition: none
|
2023-11-16 18:57:55 +01:00
|
|
|
|
delay: 5s
|
|
|
|
|
max_attempts: 5
|
|
|
|
|
window: 120s
|
|
|
|
|
logging:
|
|
|
|
|
driver: 'journald'
|