-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (60 loc) · 2.09 KB
/
docker-compose.yml
File metadata and controls
63 lines (60 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Agent Control Server - Docker Compose Configuration
#
# Quick Start:
# docker compose up -d
#
# Services:
# - PostgreSQL database (port 5432)
# - Agent Control Server API (port 8000)
# - Agent Control UI Dashboard (port 4000)
#
# The images are published to Docker Hub at:
# galileoai/agent-control-server:latest
# galileoai/agent-control-ui:latest
#
# This compose file pulls prebuilt images for both server and UI from Docker Hub.
# For local development (run server with uvicorn or build UI locally), use:
# docker compose -f docker-compose.dev.yml up -d
services:
postgres:
image: postgres:16-alpine
container_name: agent_control_postgres
ports:
- "5432:5432"
environment:
POSTGRES_DB: agent_control
POSTGRES_USER: agent_control
POSTGRES_PASSWORD: agent_control
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U agent_control -d agent_control"]
interval: 5s
timeout: 5s
retries: 10
restart: unless-stopped
server:
platform: linux/amd64
image: galileoai/agent-control-server:latest
container_name: agent_control_server
ports:
- "8000:8000"
environment:
# Database connection (uses Docker service name 'postgres')
# Use postgresql+psycopg:// (supports both sync migrations and async app code)
AGENT_CONTROL_DB_URL: postgresql+psycopg://agent_control:agent_control@postgres:5432/agent_control
# Server configuration
AGENT_CONTROL_HOST: 0.0.0.0
AGENT_CONTROL_PORT: 8000
# API authentication (override via host env or server/.env; see server/.env.example)
AGENT_CONTROL_API_KEY_ENABLED: ${AGENT_CONTROL_API_KEY_ENABLED:-false}
AGENT_CONTROL_API_KEYS: ${AGENT_CONTROL_API_KEYS:-}
AGENT_CONTROL_ADMIN_API_KEYS: ${AGENT_CONTROL_ADMIN_API_KEYS:-}
AGENT_CONTROL_SESSION_SECRET: ${AGENT_CONTROL_SESSION_SECRET:-}
AGENT_CONTROL_CORS_ORIGINS: ${AGENT_CONTROL_CORS_ORIGINS:-http://localhost:4000}
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
volumes:
pgdata: