Compare commits
1 Commits
bf56d4be8b
...
fix/matrix
| Author | SHA1 | Date | |
|---|---|---|---|
| 8adbbf0ed4 |
20
ai/compose.yml
Executable file → Normal file
20
ai/compose.yml
Executable file → Normal file
@@ -31,17 +31,27 @@ services:
|
|||||||
ssh:
|
ssh:
|
||||||
- default
|
- default
|
||||||
container_name: hermes
|
container_name: hermes
|
||||||
|
# Install Matrix bridge deps (mautrix[encryption]) + openai into the venv at startup.
|
||||||
|
# Ensures the venv is usable even on first boot with empty persistent volume.
|
||||||
entrypoint: ["/bin/bash", "-c",
|
entrypoint: ["/bin/bash", "-c",
|
||||||
"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 \"$@\"",
|
"bash /opt/data/hermes-tools/install.sh && \
|
||||||
|
if [ ! -f /opt/hermes/.venv/bin/python3 ]; then \
|
||||||
|
uv venv /opt/hermes/.venv --seed && \
|
||||||
|
. /opt/hermes/.venv/bin/activate && \
|
||||||
|
uv pip install --no-cache-dir --no-deps -e /opt/hermes && \
|
||||||
|
uv pip install --no-cache-dir piper-tts sounddevice numpy; \
|
||||||
|
else \
|
||||||
|
. /opt/hermes/.venv/bin/activate; \
|
||||||
|
fi && \
|
||||||
|
uv pip install openai 'mautrix[encryption]' -q && \
|
||||||
|
exec /usr/bin/tini -g -- /opt/hermes/docker/entrypoint.sh \"$@\"",
|
||||||
"hermes-entrypoint"]
|
"hermes-entrypoint"]
|
||||||
restart: always
|
restart: always
|
||||||
|
# Gateway run enables the internal API server on port 8642
|
||||||
|
command: gateway run
|
||||||
environment:
|
environment:
|
||||||
- OLLAMA_HOST=http://ollama:11434
|
- OLLAMA_HOST=http://ollama:11434
|
||||||
- HERMES_DASHBOARD=1
|
- HERMES_DASHBOARD=1
|
||||||
# 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=ashley,claire,finn,matt,paul
|
|
||||||
- API_SERVER_ENABLED=true
|
- API_SERVER_ENABLED=true
|
||||||
- API_SERVER_PORT=8642
|
- API_SERVER_PORT=8642
|
||||||
- API_SERVER_HOST=0.0.0.0
|
- API_SERVER_HOST=0.0.0.0
|
||||||
|
|||||||
4
ai/hermes/startup.sh
Executable file
4
ai/hermes/startup.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# This file was replaced by inline entrypoint logic in compose.yml
|
||||||
|
# See ai/compose.yml hermes.entrypoint for the current implementation.
|
||||||
|
echo "startup.sh is obsolete — logic is inline in compose.yml entrypoint"
|
||||||
Reference in New Issue
Block a user