fix: Matrix bridge ModuleNotFoundError - install deps to venv with persistence #2

Merged
gortium merged 5 commits from fix/matrix-bridge-dependencies into master 2026-05-20 18:47:30 +00:00
12 changed files with 43 additions and 671 deletions
Showing only changes of commit f9afd79f3e - Show all commits

8
ai/compose.yml Normal file → Executable file
View File

@@ -30,7 +30,10 @@ services:
container_name: hermes
restart: always
# Gateway run enables the internal API server on port 8642
command: gateway run
# Install openai and matrix-nio for Matrix bridge compatibility on startup
# Uses uv (modern Python package manager) with --system flag for venv installation
entrypoint: >
sh -c "/opt/hermes/.venv/bin/uv pip install openai matrix-nio[encryption] --system -q && /opt/hermes/.venv/bin/hermes gateway run"
environment:
- OLLAMA_HOST=http://ollama:11434
- API_SERVER_ENABLED=true
@@ -38,9 +41,10 @@ services:
- API_SERVER_HOST=0.0.0.0
- API_SERVER_KEY=hermes_local_key
- GATEWAY_ALLOW_ALL_USERS=true
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY}
- OPENROUTER_API_KEY=${OPEN...KEY}
volumes:
- /mnt/HoardingCow_docker_data/Hermes/data:/opt/data
- /mnt/HoardingCow_docker_data/Hermes/venv:/opt/hermes/.venv
devices:
- /dev/kfd:/dev/kfd
- /dev/dri:/dev/dri