feat: wire up HERMES_PROFILES to multi-gateway launcher script
- 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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user