Compare commits
1 Commits
35aa466e87
...
feat/herme
| Author | SHA1 | Date | |
|---|---|---|---|
| 6b33c3099a |
56
ai/compose.yml
Executable file → Normal file
56
ai/compose.yml
Executable file → Normal file
@@ -32,9 +32,11 @@ services:
|
||||
- default
|
||||
container_name: hermes
|
||||
entrypoint: ["/bin/bash", "-c",
|
||||
"bash /opt/data/hermes-tools/install.sh && . /opt/hermes/.venv/bin/activate && uv pip install openai 'mautrix[encryption]' -q && exec /usr/bin/tini -g -- /opt/hermes/docker/entrypoint.sh \"$@\"",
|
||||
"bash /opt/data/hermes-tools/install.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
|
||||
- API_SERVER_ENABLED=true
|
||||
@@ -50,14 +52,16 @@ services:
|
||||
- ROCR_VISIBLE_DEVICES=0,1
|
||||
- HSA_ENABLE_SDMA=0
|
||||
- TZ=America/Montreal
|
||||
# Hermes Workspace dashboard (port 9119) — enables multi-agent web UI
|
||||
- HERMES_DASHBOARD=1
|
||||
- HERMES_DASHBOARD_HOST=0.0.0.0
|
||||
- HERMES_DASHBOARD_PORT=9119
|
||||
volumes:
|
||||
- /mnt/HoardingCow_docker_data/Hermes/data:/opt/data
|
||||
# Syncthing-shared org files — read-only view of user's agenda
|
||||
- /mnt/HoardingCow_docker_data/Syncthing/telos-ro:/opt/data/telos-ro:ro
|
||||
# Syncthing-shared inbox — write tasks here, they sync to user's laptop
|
||||
- /mnt/HoardingCow_docker_data/Syncthing/telos-rw:/opt/data/telos-rw:rw
|
||||
# Persist Python venv across container recreation (Matrix bridge deps, etc.)
|
||||
- /mnt/HoardingCow_docker_data/Hermes/venv:/opt/hermes/.venv
|
||||
devices:
|
||||
- /dev/kfd:/dev/kfd
|
||||
- /dev/dri:/dev/dri
|
||||
@@ -66,6 +70,12 @@ services:
|
||||
- "26"
|
||||
networks:
|
||||
- ai_backend
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fsS http://localhost:8642/health && curl -fsS http://localhost:9119/api/status || exit 1"]
|
||||
interval: 15s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 60s
|
||||
|
||||
syncthing:
|
||||
image: syncthing/syncthing:latest
|
||||
@@ -129,6 +139,46 @@ services:
|
||||
- "303"
|
||||
- "26"
|
||||
|
||||
# ── Hermes Workspace ──────────────────────────────────────────
|
||||
# Web UI for Hermes Agent — chat, memory, skills, terminal,
|
||||
# multi-agent swarm orchestration. Connects to the existing
|
||||
# hermes gateway (port 8642) and dashboard (port 9119).
|
||||
hermes-workspace:
|
||||
image: ghcr.io/outsourc-e/hermes-workspace:latest
|
||||
container_name: hermes-workspace
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
hermes:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
HERMES_API_URL: http://hermes:8642
|
||||
HERMES_DASHBOARD_URL: http://hermes:9119
|
||||
HERMES_API_TOKEN: ${API_SERVER_KEY}
|
||||
HERMES_PASSWORD: ${HERMES_WORKSPACE_PASSWORD:?must be set}
|
||||
COOKIE_SECURE: "1"
|
||||
volumes:
|
||||
# Share the same Hermes data — workspace reads config, sessions,
|
||||
# skills, memory from the agent's persistent volume
|
||||
- /mnt/HoardingCow_docker_data/Hermes/data:/home/workspace/.hermes
|
||||
networks:
|
||||
- ai_backend
|
||||
- ai_net
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=ai_net"
|
||||
|
||||
- "traefik.http.routers.workspace-http.rule=Host(`workspace.lazyworkhorse.net`)"
|
||||
- "traefik.http.routers.workspace-http.entrypoints=web"
|
||||
- "traefik.http.routers.workspace-http.middlewares=redirect-to-https"
|
||||
|
||||
- "traefik.http.routers.workspace-https.rule=Host(`workspace.lazyworkhorse.net`)"
|
||||
- "traefik.http.routers.workspace-https.entrypoints=websecure"
|
||||
- "traefik.http.routers.workspace-https.tls=true"
|
||||
- "traefik.http.routers.workspace-https.tls.certresolver=njalla"
|
||||
|
||||
- "traefik.http.services.workspace.loadbalancer.server.port=3000"
|
||||
# ─────────────────────────────────────────────────────────────
|
||||
|
||||
networks:
|
||||
ai_net:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user