Files
agent/docker-compose.yml
T
2026-09-01 10:33:11 +08:00

25 lines
726 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
services:
agent:
build: ./app
container_name: agent
restart: unless-stopped
expose:
- "8080" # 仅内网暴露,由 nginx-proxy 对外
volumes:
- ./data:/workspace/tasks # 持久化:任务目录 + SQLite(.agent.db 在此目录内)
- ./skills:/workspace/skills # 技能目录:所有任务/会话共享同一份技能
- ./config.yml:/app/config.yml:ro
- ./app/server:/app/server
environment:
- PORT=8080
- AGENT_CONFIG=/app/config.yml
- VIRTUAL_HOST=agent.ai.foresh.com
- VIRTUAL_PORT=8080
- CERT_NAME=default
networks:
- my-app-network
networks:
my-app-network:
external: true