From 1c8daf6ac514fe1df68b594a3438ee4db6647160 Mon Sep 17 00:00:00 2001 From: Marc Blatter Date: Wed, 22 Jul 2026 10:52:23 +0000 Subject: [PATCH] composte-hermes.yml aktualisiert --- composte-hermes.yml | 49 ++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/composte-hermes.yml b/composte-hermes.yml index 12589cc..0d1924d 100644 --- a/composte-hermes.yml +++ b/composte-hermes.yml @@ -6,7 +6,7 @@ services: runtime: nvidia ipc: host ports: - - "8005:8005" + - "8005:8000" environment: - NVIDIA_VISIBLE_DEVICES=0,1 - HUGGING_FACE_HUB_TOKEN=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 @@ -43,16 +43,16 @@ services: networks: - cortex-net - hermes-agent: + hermes-gateway: image: nousresearch/hermes-agent:latest - container_name: cortex-hermes-agent + container_name: cortex-hermes-gateway restart: unless-stopped depends_on: vllm: condition: service_healthy + command: ["gateway", "run"] shm_size: 1g ports: - - "9119:9119" - "8642:8642" volumes: - /opt/hermes:/opt/data @@ -61,28 +61,8 @@ services: - HERMES_GID=${HERMES_GID:-10000} - OPENAI_BASE_URL=http://vllm:8005/v1 - OPENAI_API_KEY=sk-dummy-key-1234567890 - - GATEWAY_HEALTH_URL=http://localhost:8642 - entrypoint: ["/bin/bash", "-c"] - command: - - | - set -e - hermes-agent gateway run & - GATEWAY_PID=$$! - until curl -sf http://localhost:8642 >/dev/null 2>&1; do - if ! kill -0 $$GATEWAY_PID 2>/dev/null; then - echo "FEHLER: Gateway-Prozess ist abgestürzt, breche ab." - exit 1 - fi - sleep 1 - done - hermes-agent dashboard --host 0.0.0.0 --no-open & - DASHBOARD_PID=$$! - wait -n $$GATEWAY_PID $$DASHBOARD_PID - EXIT_CODE=$$? - kill $$GATEWAY_PID $$DASHBOARD_PID 2>/dev/null || true - exit $$EXIT_CODE healthcheck: - test: ["CMD-SHELL", "curl -f http://localhost:8642 && curl -f http://localhost:9119"] + test: ["CMD", "curl", "-f", "http://localhost:8642"] interval: 30s timeout: 10s retries: 5 @@ -90,6 +70,25 @@ services: networks: - cortex-net + hermes-dashboard: + image: nousresearch/hermes-agent:latest + container_name: cortex-hermes-dashboard + restart: unless-stopped + depends_on: + hermes-gateway: + condition: service_healthy + command: ["dashboard", "--host", "0.0.0.0", "--no-open"] + ports: + - "9119:9119" + volumes: + - /opt/hermes:/opt/data + environment: + - HERMES_UID=${HERMES_UID:-10000} + - HERMES_GID=${HERMES_GID:-10000} + - GATEWAY_HEALTH_URL=http://cortex-hermes-gateway:8642 + networks: + - cortex-net + networks: cortex-net: driver: bridge \ No newline at end of file