42 lines
854 B
YAML
42 lines
854 B
YAML
|
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'
|