Compare commits

..

3 Commits

Author SHA1 Message Date
Thierry Pouplier
2aab06cc1a fix: use mautrix[encryption] instead of matrix-nio for Matrix bridge
The Hermes Matrix gateway uses the mautrix SDK, not matrix-nio.
This fixes E2EE support by installing the correct library.

Refs: PR #2
2026-04-29 03:34:15 +00:00
Thierry Pouplier
a404f5e2c4 fix: Correct OPENROUTER_API_KEY variable name 2026-04-29 02:43:35 +00:00
Thierry Pouplier
f9afd79f3e fix: Add openai and matrix-nio dependencies for Hermes Matrix bridge 2026-04-29 02:19:24 +00:00
2 changed files with 6 additions and 14 deletions

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

@@ -26,13 +26,14 @@ services:
- "traefik.http.routers.webui-https.tls.certresolver=njalla"
hermes:
build:
context: ./hermes
dockerfile: Dockerfile
image: nousresearch/hermes-agent:latest
container_name: hermes
restart: always
# Gateway run enables the internal API server on port 8642
command: gateway run
# 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 mautrix[encryption] --system -q && /opt/hermes/.venv/bin/hermes gateway run"
environment:
- OLLAMA_HOST=http://ollama:11434
- API_SERVER_ENABLED=true
@@ -43,6 +44,7 @@ services:
- OPENROUTER_API_KEY=${OPENROUTER_API_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

View File

@@ -1,10 +0,0 @@
FROM nousresearch/hermes-agent:latest
# Install Chromium for browser tool
RUN apt-get update && apt-get install -y --no-install-recommends \
chromium \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
# Set environment variable for Chromium path
ENV CHROME_EXECUTABLE=/usr/bin/chromium