init v3 branch

This commit is contained in:
2026-09-06 07:48:45 +08:00
parent fd88870d83
commit 98b1069b54
4 changed files with 53 additions and 33 deletions
+23 -7
View File
@@ -1,14 +1,15 @@
services:
agent:
agent-core:
build: ./app
container_name: agent
container_name: agent-core
restart: unless-stopped
expose:
- "8080" # 仅内网暴露,由 nginx-proxy 对外
volumes:
- ./data:/workspace/tasks # 持久化:任务目录 + SQLite(.agent.db 在此目录内)
- ./tasks:/workspace/tasks # 持久化:任务目录
- ./skills:/workspace/skills # 技能目录:所有任务/会话共享同一份技能
- ./config.yml:/app/config.yml # 2.0:去掉 :ro,允许设置页写配置(写前服务端会校验)
- ./data:/workspace/data # 持久化:数据目录
- ./config.yml:/app/config.yml # 允许设置页写配置(写前服务端会校验)
- ./app/server:/app/server
environment:
- PORT=8080
@@ -16,9 +17,24 @@ services:
- VIRTUAL_HOST=agent.ai.foresh.com
- VIRTUAL_PORT=8080
- CERT_NAME=default
# 加入executor独立服务
- EXECUTOR_URL=http://agent-executor:9000
networks:
- my-app-network
networks:
my-app-network:
external: true
agent-executor:
build: ./executor
container_name: agent-executor
restart: unless-stopped
expose:
- "9000"
volumes:
- ./tasks:/workspace/tasks # 持久化:任务目录
- ./skills:/workspace/skills # 技能目录:所有任务/会话共享同一份技能
environment:
- PORT=9000
cap_drop:
- SYS_ADMIN
- DAC_OVERRIDE
networks:
- my-app-network