Compare commits
10 Commits
fix/matrix
...
bf56d4be8b
| Author | SHA1 | Date | |
|---|---|---|---|
| bf56d4be8b | |||
| 1c8efb1090 | |||
| 7725830e6c | |||
| 548e15d6b4 | |||
| 35aa466e87 | |||
| 2ff99b1f57 | |||
| dea1429a5d | |||
|
|
2aab06cc1a | ||
|
|
a404f5e2c4 | ||
|
|
f9afd79f3e |
20
ai/compose.yml
Normal file → Executable file
20
ai/compose.yml
Normal file → Executable file
@@ -31,27 +31,17 @@ services:
|
||||
ssh:
|
||||
- default
|
||||
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",
|
||||
"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 \"$@\"",
|
||||
"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
|
||||
command: gateway run
|
||||
environment:
|
||||
- OLLAMA_HOST=http://ollama:11434
|
||||
- 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_PORT=8642
|
||||
- API_SERVER_HOST=0.0.0.0
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/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