forked from admin/ansible
feat(hermes_squid): add hermes-proxy service and voice-gateway to hermes_infra #5
@@ -21,7 +21,7 @@ services:
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname != xu4
|
||||
- node.hostname == odroid
|
||||
replicas: 1
|
||||
resources:
|
||||
limits:
|
||||
@@ -48,7 +48,7 @@ services:
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname != xu4
|
||||
- node.hostname == odroid
|
||||
replicas: 1
|
||||
resources:
|
||||
limits:
|
||||
@@ -104,7 +104,7 @@ services:
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname != xu4
|
||||
- node.hostname = odroid
|
||||
replicas: 1
|
||||
resources:
|
||||
limits:
|
||||
@@ -133,7 +133,7 @@ services:
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname != xu4
|
||||
- node.hostname == odroid
|
||||
replicas: 1
|
||||
resources:
|
||||
limits:
|
||||
@@ -229,6 +229,95 @@ services:
|
||||
delay: 5s
|
||||
max_attempts: 3
|
||||
|
||||
hermes-proxy:
|
||||
image: nousresearch/hermes-agent:v2026.8.3
|
||||
hostname: hermes-proxy
|
||||
user: "0:0"
|
||||
command: proxy start --host 0.0.0.0 --port 8645
|
||||
networks:
|
||||
- hermes_proxy
|
||||
volumes:
|
||||
- hermes_gateway_data:/opt/data
|
||||
environment:
|
||||
HERMES_HOME: /opt/data
|
||||
HTTP_PROXY: http://squid:3128
|
||||
HTTPS_PROXY: http://squid:3128
|
||||
http_proxy: http://squid:3128
|
||||
https_proxy: http://squid:3128
|
||||
NO_PROXY: localhost,127.0.0.1,.local,squid,hermes-gateway,hermes-agent,hermes-proxy,brencher-state-proxy,docker_socket_proxy,10.0.0.0/8
|
||||
no_proxy: localhost,127.0.0.1,.local,squid,hermes-gateway,hermes-agent,hermes-proxy,brencher-state-proxy,docker_socket_proxy,10.0.0.0/8
|
||||
depends_on:
|
||||
- squid
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "python -c \"import urllib.request,sys; urllib.request.urlopen('http://127.0.0.1:8645/v1/models', timeout=3).read()\" || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 20s
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname != xu4
|
||||
replicas: 1
|
||||
resources:
|
||||
limits:
|
||||
memory: 512M
|
||||
pids: 256
|
||||
reservations:
|
||||
memory: 256M
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
delay: 5s
|
||||
max_attempts: 3
|
||||
|
||||
voice-gateway:
|
||||
image: gitea.rudolf.keenetic.link/hermes/hermes-voice-gateway:v0.3.0
|
||||
hostname: voice-gateway
|
||||
user: "0:0"
|
||||
networks:
|
||||
- hermes_proxy
|
||||
ports:
|
||||
- target: 8765
|
||||
published: 8765
|
||||
protocol: tcp
|
||||
mode: host
|
||||
environment:
|
||||
VOICE_GATEWAY_HOST: "0.0.0.0"
|
||||
VOICE_GATEWAY_PORT: "8765"
|
||||
HERMES_PROXY_URL: "http://hermes-proxy:8645"
|
||||
SAMPLE_RATE_IN: "16000"
|
||||
SAMPLE_RATE_OUT: "22050"
|
||||
LLM_MODEL: "MiniMax-M3"
|
||||
PIPER_VOICE_URL: "https://huggingface.co/rhasspy/piper-voices/resolve/main/ru/ru_RU/denis/medium/ru_RU-denis-medium.onnx"
|
||||
PIPER_VOICE_CONFIG_URL: "https://huggingface.co/rhasspy/piper-voices/resolve/main/ru/ru_RU/denis/medium/ru_RU-denis-medium.onnx.json"
|
||||
PIPER_VOICE_PATH: "/opt/piper-voices/ru_RU-denis-medium.onnx"
|
||||
MAX_SESSION_SECONDS: "300"
|
||||
MAX_SILENCE_MS: "1500"
|
||||
HTTP_PROXY: "http://squid:3128"
|
||||
HTTPS_PROXY: "http://squid:3128"
|
||||
NO_PROXY: "localhost,127.0.0.1,.local,squid,hermes-gateway,hermes-agent,hermes-proxy,brencher-state-proxy,docker_socket_proxy,10.0.0.0/8"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "python -c \"import urllib.request,sys; urllib.request.urlopen('http://127.0.0.1:8765/healthz', timeout=3).read()\" || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 60s
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname == rudolf-T
|
||||
replicas: 1
|
||||
resources:
|
||||
limits:
|
||||
memory: 4G
|
||||
pids: 1024
|
||||
reservations:
|
||||
memory: 1G
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
delay: 10s
|
||||
max_attempts: 3
|
||||
|
||||
networks:
|
||||
hermes_proxy:
|
||||
driver: overlay
|
||||
|
||||
Reference in New Issue
Block a user