{% include 'roles/sys-svc-compose/templates/base.yml.j2' %} {% set service_name = KIX_BACKEND_SERVICE %} {% set container_healthcheck_start_period = '10m' %} {{ service_name }}: {{ lookup('container_image', application_id, KIX_BACKEND_SERVICE) }} {{ lookup('compose_only', 'container_name', KIX_BACKEND_CONTAINER) }} hostname: {{ KIX_BACKEND_SERVICE }} user: "110010100" {% include 'roles/sys-svc-container/templates/base.yml.j2' %} {{ lookup('container_depends_on', application_id) | indent(4) }} {{ lookup('container_volumes', service_name) | indent(4) }} {{ lookup('container_extra_hosts') | indent(4) }} {{ lookup('container_networks') | indent(4) }} # nocheck: healthcheck-timing-override the image's own HEALTHCHECK supplies test, interval, timeout and retries; only the start window is corrected here healthcheck: start_period: {{ container_healthcheck_start_period }} start_interval: 5s {% set service_name = KIX_FRONTEND_SERVICE %} {{ service_name }}: {{ lookup('container_image', application_id, KIX_FRONTEND_SERVICE) }} {{ lookup('compose_only', 'container_name', KIX_FRONTEND_CONTAINER) }} hostname: {{ KIX_FRONTEND_SERVICE }} user: "110010100" {% include 'roles/sys-svc-container/templates/base.yml.j2' %} {{ lookup('depends_on', {KIX_BACKEND_SERVICE: 'service_healthy'} | combine({'redis': 'service_healthy'} if lookup('engine', 'redis', application_id, 'local') else {})) }} environment: - USE_SSL=0 - REDIS_CACHE_HOST={{ lookup('engine', 'redis', application_id, 'host') }} - REDIS_CACHE_PORT={{ lookup('engine', 'redis', application_id, 'port') }} - REDIS_CACHE_PASSWORD={{ lookup('engine', 'redis', application_id, 'password') }} - FRONTEND_CLIENT_ID=kix-agent-frontend - FRONTEND_NOTIFICATION_ID=kix-agent-frontend - NOTIFICATION_URL=http://{{ KIX_FRONTEND_SERVICE }}:{{ KIX_FRONTEND_INTERNAL_PORT }}/notifications - BACKEND_API_URL=http://{{ KIX_BACKEND_SERVICE }}:{{ KIX_BACKEND_INTERNAL_PORT }}/api/v1 {{ lookup('container_volumes', service_name) | indent(4) }} {{ lookup('container_extra_hosts') | indent(4) }} {{ lookup('container_networks') | indent(4) }} # nocheck: healthcheck-timing-override the image's own HEALTHCHECK supplies test, interval, timeout and retries; only the start window is corrected here healthcheck: start_period: {{ container_healthcheck_start_period }} start_interval: 5s {% set service_name = KIX_PROXY_SERVICE %} {{ service_name }}: {{ lookup('container_image', application_id, 'kix') }} {{ lookup('compose_only', 'container_name', KIX_PROXY_CONTAINER) }} {% include 'roles/sys-svc-container/templates/base.yml.j2' %} {{ lookup('depends_on', {KIX_BACKEND_SERVICE: 'service_healthy', KIX_FRONTEND_SERVICE: 'service_healthy'}) }} {{ lookup('container_volumes', service_name) | indent(4) }} {{ lookup('container_ports', ['kix', 'http', DOCKER_BIND_HOST]) | indent(4) }} {{ lookup('container_extra_hosts') | indent(4) }} {{ lookup('container_networks') | indent(4) }} {{ lookup('compose_volumes') }} {{ lookup('compose_networks') }}