# Parent merges this file with its pinned Stage compose; CI opt-in only. services: backend_stage: environment: PREPARE_WORKER_ENABLED: "true" secrets: - hermes_username - hermes_password - hermes_runtime_grants - prepare_worker_grants volumes: - type: bind source: /opt/services/canina/stage-runtime/artifacts target: /var/lib/canina/prepare-artifacts bind: create_host_path: false networks: - hermes_inventory_backend runtime-inventory: profiles: [stage-runtime-inventory] image: nousresearch/hermes-agent@sha256:9774f4f39a9bb8c2f68ce728ed5e99ddbad282163be56764afacf88ed952b784 user: "1000:1000" entrypoint: [/opt/hermes/.venv/bin/python3, /runtime/serve.py] restart: unless-stopped read_only: true environment: HERMES_HOME: /inventory HERMES_SERVE_HEADLESS: "1" HERMES_REQUIRE_PROJECTED_INVENTORY: "1" PYTHONDONTWRITEBYTECODE: "1" tmpfs: ["/tmp:rw,noexec,nosuid,size=64m,mode=1777"] volumes: - type: bind source: ${STAGE_RUNTIME_SERVE_FILE:?absolute pinned serve.py required} target: /runtime/serve.py read_only: true bind: create_host_path: false - type: bind source: ${STAGE_RUNTIME_SNAPSHOT:?approved immutable projected snapshot required} target: /inventory read_only: true bind: create_host_path: false secrets: [hermes_username, hermes_password, hermes_signing_key] networks: hermes_inventory_backend: aliases: [canina-hermes-inventory] security_opt: [no-new-privileges:true] cap_drop: [ALL] pids_limit: 128 mem_limit: 1g networks: hermes_inventory_backend: internal: true secrets: hermes_username: file: /opt/services/canina/stage-runtime/secrets/hermes_username hermes_password: file: /opt/services/canina/stage-runtime/secrets/hermes_password hermes_signing_key: file: /opt/services/canina/stage-runtime/secrets/hermes_signing_key hermes_runtime_grants: file: /opt/services/canina/stage-runtime/secrets/hermes_runtime_grants prepare_worker_grants: file: /opt/services/canina/stage-runtime/secrets/prepare_worker_grants