新文件: "AI\346\212\200\346\234\257/.env"
新文件: "AI\346\212\200\346\234\257/docker-compose.yml" 修改: "GIT\346\212\200\346\234\257.md" 删除: README.md
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
HERMES_API_KEY=your_actual_api_key_here
|
||||
|
||||
|
||||
TELEGRAM_ALLOWED_USERS=your_telegram_user_id
|
||||
DISCORD_ALLOWED_USERS=your_discord_user_id
|
||||
# 其他平台类似
|
||||
@@ -0,0 +1,63 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user