ansible-playbook-sobigdata-.../roles/ontagme/templates/ontagme-docker-compose.yml.j2

49 lines
1.1 KiB
Django/Jinja

version: '3.6'
networks:
{{ ontotagme_docker_network }}:
{% if not ontotagme_pep %}
haproxy-public:
external: true
{% endif %}
volumes:
{{ ontotagme_data_volume }}:
{% if ontotagme_data_volume_type == "nfs4" %}
driver: local
driver_opts:
type: {{ ontotagme_data_volume_type }}
o: "{{ ontotagme_data_volume_o }}"
device: "{{ ontotagme_data_volume_device }}"
{% endif %}
services:
{{ ontotagme_docker_catalogue_service_name }}:
image: {{ ontotagme_docker_catalogue_service_image }}
networks:
- {{ ontotagme_docker_network }}
{% if not ontotagme_pep %}
- haproxy-public
{% endif %}
environment:
JVM_ARGS: -Xmx2g
JAVA_OPTIONS: -Xmx2048m -Xms2048m
ADMIN_PASSWORD: {{ vault_ontotagme_admin_password }}
volumes:
- {{ ontotagme_data_volume }}:/fuseki-base
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'