926fa05cf1
新文件: "AI\346\212\200\346\234\257/docker-compose.yml" 修改: "GIT\346\212\200\346\234\257.md" 删除: README.md
64 lines
1.4 KiB
YAML
64 lines
1.4 KiB
YAML
services:
|
|
hermes:
|
|
image: nousresearch/hermes-agent:latest
|
|
container_name: hermes
|
|
restart: unless-stopped
|
|
command: gateway run
|
|
ports:
|
|
- "8642:8642"
|
|
volumes:
|
|
- ${HOME}/.hermes:/opt/data
|
|
networks:
|
|
- hermes-net
|
|
environment:
|
|
- API_SERVER_ENABLED=true
|
|
- API_SERVER_HOST=0.0.0.0
|
|
- API_SERVER_KEY=${HERMES_API_KEY}
|
|
- TZ=Asia/Shanghai
|
|
cap_add:
|
|
- SYS_ADMIN
|
|
- NET_ADMIN
|
|
- DAC_OVERRIDE
|
|
- SYS_PTRACE
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8642/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '2.0'
|
|
memory: 4G
|
|
|
|
dashboard:
|
|
image: nousresearch/hermes-agent:latest
|
|
container_name: hermes-dashboard
|
|
restart: unless-stopped
|
|
command: dashboard --host 0.0.0.0 --insecure
|
|
ports:
|
|
- "9119:9119"
|
|
volumes:
|
|
- ${HOME}/.hermes:/opt/data
|
|
networks:
|
|
- hermes-net
|
|
environment:
|
|
- GATEWAY_HEALTH_URL=http://hermes:8642
|
|
- HERMES_DASHBOARD_HOST=0.0.0.0
|
|
- HERMES_DASHBOARD_PORT=9119
|
|
- TZ=Asia/Shanghai
|
|
depends_on:
|
|
hermes:
|
|
condition: service_healthy
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '0.5'
|
|
memory: 512M
|
|
|
|
networks:
|
|
hermes-net:
|
|
driver: bridge
|
|
|