ansible-playbook-gcore-enab.../docker-compose.yml

42 lines
854 B
YAML
Raw Normal View History

2023-09-26 11:40:59 +02:00
version: '3.6'
networks:
is-registry-network:
haproxy-public:
external: true
secrets:
ghn-config:
external: true
jndi-config:
external: true
services:
is-registry:
image: d4science/gcore-is-registry
ports:
- "8080:8080"
networks:
- is-registry-network
- haproxy-public
secrets:
- source: ghn-config
target: /home/gcube/gCore/config/GHNConfig.xml
mode: 0444
- source: jndi-config
target: /home/gcube/gCore/etc/is-registry-service/jndi-config.xml
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'