-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
119 lines (110 loc) · 2.88 KB
/
docker-compose.yml
File metadata and controls
119 lines (110 loc) · 2.88 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: '3.8'
services:
# AInTandem Agent MCP Scheduler - Main Service
aintandem-agent:
build:
context: .
dockerfile: Dockerfile
container_name: aintandem-agent-scheduler
ports:
- "8000:8000" # FastAPI server
- "7860:7860" # Gradio GUI
environment:
# Application settings
- LOG_LEVEL=${LOG_LEVEL:-INFO}
# LLM Provider Keys
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- OPENAI_BASE_URL=${OPENAI_BASE_URL:-https://api.openai.com/v1}
- DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY:-}
- DASHSCOPE_API_KEY=${DASHSCOPE_API_KEY:-}
# MCP Server Keys (optional)
- BRAVE_API_KEY=${BRAVE_API_KEY:-}
- GITHUB_TOKEN=${GITHUB_TOKEN:-}
- GOOGLE_MAPS_API_KEY=${GOOGLE_MAPS_API_KEY:-}
# Database (optional, for future use)
- DATABASE_URL=${DATABASE_URL:-}
volumes:
# Configuration files (read-only)
- ./config:/app/config:ro
# Storage for tasks and logs
- aintandem-storage:/app/storage
# Custom agents configuration (optional)
- ./config/agents.yaml:/app/config/agents.yaml:ro
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- aintandem-network
# Resource limits
deploy:
resources:
limits:
cpus: '2'
memory: 2G
reservations:
cpus: '0.5'
memory: 512M
# Optional: Nginx Reverse Proxy
nginx:
image: nginx:alpine
container_name: aintandem-nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/ssl:/etc/nginx/ssl:ro
depends_on:
- aintandem-agent
restart: unless-stopped
networks:
- aintandem-network
profiles:
- with-nginx
# Optional: Redis for caching (future use)
redis:
image: redis:7-alpine
container_name: aintandem-redis
ports:
- "6379:6379"
volumes:
- redis-data:/data
command: redis-server --appendonly yes
restart: unless-stopped
networks:
- aintandem-network
profiles:
- with-redis
# Optional: PostgreSQL for task persistence (future use)
postgres:
image: postgres:15-alpine
container_name: aintandem-postgres
ports:
- "5432:5432"
environment:
- POSTGRES_DB=${POSTGRES_DB:-aintandem_agent}
- POSTGRES_USER=${POSTGRES_USER:-agent}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-changeme}
volumes:
- postgres-data:/var/lib/postgresql/data
restart: unless-stopped
networks:
- aintandem-network
profiles:
- with-postgres
# Named volumes
volumes:
aintandem-storage:
driver: local
redis-data:
driver: local
postgres-data:
driver: local
# Network
networks:
aintandem-network:
driver: bridge