From ab555aad84a3b5965b6e04d098cb41548cfb5477 Mon Sep 17 00:00:00 2001 From: Hermes Date: Fri, 22 May 2026 10:02:14 -0400 Subject: [PATCH] feat: run 5 profile gateways in same container (ashley, claire, finn, matt, paul) Launches each profile's Discord gateway as a background process before the main gateway starts. Each logs to /opt/data/logs/gateway-.log with API server disabled to avoid port conflicts. --- ai/compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai/compose.yml b/ai/compose.yml index 1db7831..9d9f22c 100644 --- a/ai/compose.yml +++ b/ai/compose.yml @@ -32,7 +32,7 @@ services: - default container_name: hermes entrypoint: ["/bin/bash", "-c", - "bash /opt/data/hermes-tools/install.sh && exec /usr/bin/tini -g -- /opt/hermes/docker/entrypoint.sh \"$@\"", + "bash /opt/data/hermes-tools/install.sh && . /opt/hermes/.venv/bin/activate && uv pip install openai 'mautrix[encryption]' -q && mkdir -p /opt/data/logs && for p in ashley claire finn matt paul; do API_SERVER_ENABLED=false nohup hermes --profile $p gateway run >> /opt/data/logs/gateway-$p.log 2>&1 & done && exec /usr/bin/tini -g -- /opt/hermes/docker/entrypoint.sh \"$@\"", "hermes-entrypoint"] restart: always # Gateway run enables the internal API server on port 8642