


























一、部署Hermes
1、拉取镜像并进行基础配置。
sudo docker pull nousresearch/hermes-agent:latest mkdir -p ~/.hermes sudo docker run -it --rm -v ~/.hermes:/opt/data nousresearch/hermes-agent:latest setup
2、配置用户和密钥。
sudo docker run --rm -it nousresearch/hermes-agent python3 -c "from plugins.dashboard_auth.basic import hash_password; print(hash_password('admin123'))"
生成hash值后,复制这一段:scrypt$16384$8$1$cPg8V1rWeWrYQc/gzi/3Zw==$k2xxM2EeE7HO35NR3A+dA/Es1cWm6MCuZY7kmgz9dj8=
打开~/.hermes/config.yaml,配置用户和密码。
sudo vi ~/.hermes/config.yaml

3、新建docker-compose.yml
services: hermes: image: nousresearch/hermes-agent:latest container_name: hermes restart: unless-stopped command: gateway run ports: - "8642:8642" volumes: - ~/.hermes:/opt/data deploy: resources: limits: memory: 4G cpus: "2.0" dashboard: image: nousresearch/hermes-agent:latest container_name: hermes-dashboard restart: unless-stopped command: dashboard --host 0.0.0.0 ports: - "9119:9119" volumes: - ~/.hermes:/opt/data environment: - GATEWAY_HEALTH_URL=http://hermes:8642 depends_on: - hermes deploy: resources: limits: memory: 512M cpus: "0.5"
4、启动容器
sudo docker-compose up -d
5、浏览器访问: http://ip:9119
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。