37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
name: canina-hermes-inventory
|
|
services:
|
|
runtime-inventory:
|
|
image: nousresearch/hermes-agent@sha256:9774f4f39a9bb8c2f68ce728ed5e99ddbad282163be56764afacf88ed952b784
|
|
entrypoint: [/opt/hermes/.venv/bin/python3, /runtime/serve.py]
|
|
restart: unless-stopped
|
|
environment:
|
|
HERMES_HOME: /inventory
|
|
HERMES_SERVE_HEADLESS: "1"
|
|
volumes:
|
|
- ./serve.py:/runtime/serve.py:ro
|
|
- inventory_snapshot:/inventory
|
|
secrets: [hermes_username, hermes_password, hermes_signing_key]
|
|
networks:
|
|
backend:
|
|
aliases: [canina-hermes]
|
|
security_opt: [no-new-privileges:true]
|
|
cap_drop: [ALL]
|
|
pids_limit: 128
|
|
mem_limit: 1g
|
|
# No ports, host socket, original home, or egress network.
|
|
volumes:
|
|
inventory_snapshot:
|
|
external: true
|
|
name: canina_hermes_inventory_snapshot
|
|
networks:
|
|
backend:
|
|
external: true
|
|
name: canina_hermes_backend
|
|
secrets:
|
|
hermes_username:
|
|
file: /opt/services/canina/secrets/hermes_username
|
|
hermes_password:
|
|
file: /opt/services/canina/secrets/hermes_password
|
|
hermes_signing_key:
|
|
file: /opt/services/canina/secrets/hermes_signing_key
|