{% include 'roles/sys-svc-compose/templates/base.yml.j2' %} {% set service_name = 'hermes' %} {{ service_name }}: {% include 'roles/sys-svc-container/templates/base.yml.j2' %} {{ lookup('container_image', application_id, 'hermes') }} {{ lookup('compose_only', 'container_name', HERMES_CONTAINER) }} {% if 'svc-ai-robot' in group_names %} devices: {% for device in ROBOT_DEVICE_ALLOWLIST %} - {{ device }} {% endfor %} {% elif lookup('config', application_id, 'services.kata.enabled') | bool %} {{ lookup('compose_only', 'runtime', SANDBOX_RUNTIME) }} {% endif %} command: ["gateway"] healthcheck: test: ["CMD", "curl", "-fsS", "http://127.0.0.1:{{ HERMES_PORT_INTERNAL }}/health"] interval: 2m timeout: 5s retries: 5 start_period: 10m start_interval: 5s {{ lookup('container_ports', ['hermes', 'http', DOCKER_BIND_HOST]) | indent(4) }} {{ lookup('container_volumes', service_name) | indent(4) }} {{ lookup('container_networks') | indent(4) }} {{ lookup('container_depends_on', application_id) | indent(4) }} {{ lookup('compose_networks') }} {{ lookup('compose_volumes') }}