From 7725830e6c180cf2e89c368334e891a27676e21e Mon Sep 17 00:00:00 2001 From: Hermes Date: Fri, 22 May 2026 12:27:47 -0400 Subject: [PATCH] feat: wire up HERMES_PROFILES to multi-gateway launcher script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add run-multi-gateways.sh to /opt/data/hermes-tools/ that reads HERMES_PROFILES env var and spawns one gateway per profile - Update entrypoint to call the script before the main entrypoint - Set HERMES_PROFILES=ashley,claire,finn,matt,paul (was default) Closes PR #47 (feat/multi-profile-gateways). Builds on 548e15d's cleaner env-var-driven approach — compose.yml stays declarative, logic in script. --- ai/compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ai/compose.yml b/ai/compose.yml index 7d1c8c4..bc0cd4f 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 && bash /opt/data/hermes-tools/run-multi-gateways.sh && exec /usr/bin/tini -g -- /opt/hermes/docker/entrypoint.sh \"$@\"", "hermes-entrypoint"] restart: always # Gateway run enables the internal API server on port 8642 @@ -43,7 +43,7 @@ services: # Multi-profile: comma-separated list of profiles to run as gateways. # The entrypoint reads this and starts one gateway per profile. # Add profiles here when they exist on disk (e.g. default,researcher,writer) - - HERMES_PROFILES=default + - HERMES_PROFILES=ashley,claire,finn,matt,paul - API_SERVER_ENABLED=true - API_SERVER_PORT=8642 - API_SERVER_HOST=0.0.0.0