# ============================================================================== # AgentStack Autonomous AI Coding Stack (2026 Production Blueprint) # Generated by AgentStack CLI: https://agents.techuis.nl/cli/stack/coding # Usage: # curl -sL https://agents.techuis.nl/cli/stack/coding > docker-compose.yml # docker compose up -d # ============================================================================== version: '3.8' services: # Autonomous Coding Agent Sandbox & Runtime openhands: image: ghcr.io/all-hands-ai/openhands:0.18 container_name: agentstack-openhands restart: unless-stopped ports: - "3001:3000" environment: - SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.18-nikolaik - LOG_ALL_EVENTS=true - LLM_API_KEY=${LLM_API_KEY:-} - LLM_MODEL=${LLM_MODEL:-anthropic/claude-3-5-sonnet-20241022} - WORKSPACE_BASE=/workspace volumes: - /var/run/docker.sock:/var/run/docker.sock - ./workspace:/workspace - openhands_data:/.openhands-state networks: - agentstack-net # Agent Observability & Tracing Platform langfuse: image: ghcr.io/langfuse/langfuse:2 container_name: agentstack-langfuse restart: unless-stopped depends_on: postgres: condition: service_healthy ports: - "3002:3000" environment: - DATABASE_URL=postgresql://agentstack:agentstack_secret@postgres:5432/langfuse - NEXTAUTH_SECRET=${NEXTAUTH_SECRET:-agentstack_super_secret_session_token_2026} - NEXTAUTH_URL=http://localhost:3002 - TELEMETRY_ENABLED=false networks: - agentstack-net # Relational Store & MCP Database Bridge postgres: image: postgres:16-alpine container_name: agentstack-postgres restart: unless-stopped environment: - POSTGRES_USER=agentstack - POSTGRES_PASSWORD=agentstack_secret - POSTGRES_DB=langfuse ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U agentstack -d langfuse"] interval: 5s timeout: 5s retries: 5 networks: - agentstack-net volumes: openhands_data: postgres_data: networks: agentstack-net: driver: bridge