2020-10-13 18:33:16 +02:00
|
|
|
version: '3.6'
|
|
|
|
|
2020-10-26 19:13:58 +01:00
|
|
|
networks:
|
|
|
|
{% if open_asfa_behind_haproxy %}
|
|
|
|
haproxy-public:
|
|
|
|
external: true
|
|
|
|
{% endif %}
|
|
|
|
{{ open_asfa_docker_network }}:
|
|
|
|
|
2020-10-13 18:33:16 +02:00
|
|
|
services:
|
|
|
|
{{ open_asfa_docker_service_server_name }}:
|
|
|
|
image: {{ open_asfa_docker_server_image }}
|
|
|
|
networks:
|
|
|
|
- {{ open_asfa_docker_network }}
|
2020-10-26 19:13:58 +01:00
|
|
|
{% if open_asfa_behind_haproxy %}
|
|
|
|
- haproxy-public
|
|
|
|
{% endif %}
|
2020-10-13 18:33:16 +02:00
|
|
|
environment:
|
|
|
|
SERVER_PORT: 8080
|
2020-10-13 19:59:21 +02:00
|
|
|
#DB_HOST: {{ open_asfa_docker_service_server_name }}_pg
|
2020-10-26 19:13:58 +01:00
|
|
|
DB_HOST: {{ open_asfa_db_host }}
|
|
|
|
DB_PORT: {{ open_asfa_db_port }}
|
2020-10-13 18:33:16 +02:00
|
|
|
SCHEMA: {{ open_asfa_db_name }}
|
|
|
|
DB_USER: {{ open_asfa_db_user }}
|
|
|
|
DB_PASSWORD: {{ open_asfa_db_pwd }}
|
2023-05-08 17:26:37 +02:00
|
|
|
AUTH_URL: {{ open_asfa_keycloak_auth_url }}
|
2021-07-12 14:01:16 +02:00
|
|
|
SECRET: {{ open_asfa_keycloak_client_secret }}
|
|
|
|
REALM: {{ open_asfa_keycloak_realm }}
|
|
|
|
CLIENT: {{ open_asfa_keycloak_client_name }}
|
|
|
|
CLIENT_ID: {{ open_asfa_keycloak_client_id }}
|
2023-04-28 12:56:58 +02:00
|
|
|
COUCHBASE_CONNECTION_STRING: {{ open_asfa_couchbase_connect_string }}
|
|
|
|
COUCHBASE_USERNAME: {{ open_asfa_couchbase_username }}
|
|
|
|
COUCHBASE_PASSWORD: {{ open_asfa_couchbase_password }}
|
|
|
|
COUCHBASE_BUCKET: {{ open_asfa_couchbase_bucket }}
|
2023-04-18 16:34:07 +02:00
|
|
|
GEONAME_KEY: {{ open_asfa_geoname_key }}
|
|
|
|
AGROVOC_URL: {{ open_asfa_agrovoc_url }}
|
2020-10-13 18:33:16 +02:00
|
|
|
deploy:
|
|
|
|
mode: replicated
|
|
|
|
replicas: 1
|
|
|
|
endpoint_mode: dnsrr
|
|
|
|
placement:
|
|
|
|
constraints: [node.role == worker]
|
|
|
|
restart_policy:
|
2020-10-13 18:42:02 +02:00
|
|
|
condition: on-failure
|
2020-10-13 18:33:16 +02:00
|
|
|
delay: 5s
|
|
|
|
max_attempts: 3
|
|
|
|
window: 120s
|
|
|
|
logging:
|
|
|
|
driver: 'journald'
|
|
|
|
{{ open_asfa_docker_service_client_name }}:
|
|
|
|
image: {{ open_asfa_docker_client_image }}
|
|
|
|
networks:
|
|
|
|
- {{ open_asfa_docker_network }}
|
2020-10-26 19:13:58 +01:00
|
|
|
{% if open_asfa_behind_haproxy %}
|
|
|
|
- haproxy-public
|
|
|
|
{% endif %}
|
2020-10-14 17:37:39 +02:00
|
|
|
environment:
|
|
|
|
API_BASE_URL: http://{{ open_asfa_docker_service_server_name }}:8080
|
2020-10-13 18:33:16 +02:00
|
|
|
deploy:
|
|
|
|
mode: replicated
|
|
|
|
replicas: 1
|
|
|
|
endpoint_mode: dnsrr
|
|
|
|
placement:
|
|
|
|
constraints: [node.role == worker]
|
|
|
|
restart_policy:
|
2020-10-13 18:42:02 +02:00
|
|
|
condition: on-failure
|
2020-10-13 18:33:16 +02:00
|
|
|
delay: 5s
|
|
|
|
max_attempts: 3
|
|
|
|
window: 120s
|
|
|
|
logging:
|
|
|
|
driver: 'journald'
|