Submatter/docker/docker-compose.agent-server.yml

52 lines
1.4 KiB
YAML
Raw Normal View History

# OpenHands Agent Server for Submatter
# Deploys on Dokploy (CT 102) alongside the existing stack
# Worker connects via internal Docker DNS: http://agent-server:8001
version: '3.8'
services:
agent-server:
image: ghcr.io/open-hands/agent-server:0.19.0 # pin to stable version
container_name: echodo-agent-server
ports:
- "8001:8001" # agent-server API
environment:
# Server config
- AGENT_SERVER_HOST=0.0.0.0
- AGENT_SERVER_PORT=8001
- LOCAL_BACKEND_API_KEY=${LOCAL_BACKEND_API_KEY}
# LLM config for the agent-server's own operations
- LLM_MODEL=${OMNIROUTE_MODEL:-auto/coding}
- LLM_API_KEY=${OMNIROUTE_API_KEY}
- LLM_BASE_URL=${OMNIROUTE_BASE_URL}
# Sandbox config
- SANDBOX_TYPE=docker
- SANDBOX_DOCKER_IMAGE=ghcr.io/open-hands/sandbox:latest
- SANDBOX_TIMEOUT=300
# Workspace persistence
- WORKSPACE_BASE=/workspace
volumes:
- agent-server-workspace:/workspace
- /var/run/docker.sock:/var/run/docker.sock # for sandbox containers
networks:
- echodo-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/server_info"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
deploy:
resources:
limits:
memory: 2G
cpus: '2'
volumes:
agent-server-workspace:
networks:
echodo-network:
external: true