100 lines
3.0 KiB
YAML
100 lines
3.0 KiB
YAML
x-hermes-build: &hermes-build
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
|
|
x-hermes-environment: &hermes-environment
|
|
HOME: /home/hermes
|
|
HERMES_HOME: /home/hermes/.hermes
|
|
HERMES_EXE: /home/hermes/.hermes/hermes-agent/venv/bin/hermes
|
|
CODEX_HOME: /home/hermes/.codex
|
|
CLAUDE_CONFIG_DIR: /home/hermes/.claude
|
|
GEMINI_CONFIG_DIR: /home/hermes/.gemini
|
|
NO_COLOR: "1"
|
|
HERMES_NO_TUI: "1"
|
|
|
|
x-hermes-volumes: &hermes-volumes
|
|
- type: bind
|
|
source: ${HERMES_HOME_HOST:-/opt/hermes-control-plane/hermes}
|
|
target: /home/hermes/.hermes
|
|
bind:
|
|
create_host_path: true
|
|
- type: bind
|
|
source: ${CODEX_HOME_HOST:-/opt/hermes-control-plane/codex}
|
|
target: /home/hermes/.codex
|
|
bind:
|
|
create_host_path: true
|
|
- type: bind
|
|
source: ${CLAUDE_HOME_HOST:-/opt/hermes-control-plane/claude}
|
|
target: /home/hermes/.claude
|
|
bind:
|
|
create_host_path: true
|
|
- type: bind
|
|
source: ${GEMINI_HOME_HOST:-/opt/hermes-control-plane/gemini}
|
|
target: /home/hermes/.gemini
|
|
bind:
|
|
create_host_path: true
|
|
|
|
services:
|
|
hermes-control-plane:
|
|
build: *hermes-build
|
|
image: hermes-control-plane:local
|
|
user: ${HERMES_CONTAINER_USER:-0:0}
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${HERMES_SETUP_UI_PORT:-7843}:7843"
|
|
environment:
|
|
<<: *hermes-environment
|
|
HERMES_SETUP_UI_HOST: 0.0.0.0
|
|
HERMES_SETUP_UI_PORT: 7843
|
|
volumes: *hermes-volumes
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "node -e \"fetch('http://127.0.0.1:7843/api/paths').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))\""]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
hermes-pre-ai-api:
|
|
build: *hermes-build
|
|
image: hermes-control-plane:local
|
|
user: ${HERMES_CONTAINER_USER:-0:0}
|
|
restart: unless-stopped
|
|
command:
|
|
- /bin/sh
|
|
- -lc
|
|
- exec "$$HERMES_EXE" proxy start --provider "$$HERMES_PRE_AI_PROVIDER" --host 0.0.0.0 --port 8645
|
|
ports:
|
|
- "${HERMES_PRE_AI_API_PORT:-8645}:8645"
|
|
environment:
|
|
<<: *hermes-environment
|
|
HERMES_PRE_AI_PROVIDER: ${HERMES_PRE_AI_PROVIDER:-nous}
|
|
volumes: *hermes-volumes
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "node -e \"fetch('http://127.0.0.1:8645/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))\""]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 20s
|
|
|
|
hermes-post-ai-api:
|
|
build: *hermes-build
|
|
image: hermes-control-plane:local
|
|
user: ${HERMES_CONTAINER_USER:-0:0}
|
|
restart: unless-stopped
|
|
command:
|
|
- /bin/sh
|
|
- -lc
|
|
- exec "$$HERMES_EXE" proxy start --provider "$$HERMES_POST_AI_PROVIDER" --host 0.0.0.0 --port 8646
|
|
ports:
|
|
- "${HERMES_POST_AI_API_PORT:-8646}:8646"
|
|
environment:
|
|
<<: *hermes-environment
|
|
HERMES_POST_AI_PROVIDER: ${HERMES_POST_AI_PROVIDER:-nous}
|
|
volumes: *hermes-volumes
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "node -e \"fetch('http://127.0.0.1:8646/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))\""]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 20s
|