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 42 additions and 670 deletions
Showing only changes of commit 2aab06cc1a - Show all commits

View File

@@ -30,10 +30,10 @@ services:
container_name: hermes
restart: always
# Gateway run enables the internal API server on port 8642
# Install openai and matrix-nio for Matrix bridge compatibility on startup
# Install openai and mautrix[encryption] for Matrix bridge with E2EE support 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"
sh -c "/opt/hermes/.venv/bin/uv pip install openai mautrix[encryption] --system -q && /opt/hermes/.venv/bin/hermes gateway run"
environment:
- OLLAMA_HOST=http://ollama:11434
- API_SERVER_ENABLED=true