-
-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
90 lines (87 loc) · 2.12 KB
/
docker-compose.yml
File metadata and controls
90 lines (87 loc) · 2.12 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
services:
backend:
build: .
restart: unless-stopped
ports:
- "8003:8000"
environment:
- DATABASE_URL=postgresql://postgres:postgres@postgres:5432/maverick_mcp
- REDIS_HOST=redis
# Required API Keys
- TIINGO_API_KEY=${TIINGO_API_KEY}
# Optional API Keys for Enhanced Features
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY:-}
- EXA_API_KEY=${EXA_API_KEY:-}
- TAVILY_API_KEY=${TAVILY_API_KEY:-}
- FRED_API_KEY=${FRED_API_KEY:-}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
# Server Configuration
- API_HOST=0.0.0.0
- API_PORT=8000
- LOG_LEVEL=${LOG_LEVEL:-info}
- ENVIRONMENT=${ENVIRONMENT:-production}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 45s
volumes:
- ./maverick_mcp:/app/maverick_mcp
- ./alembic:/app/alembic
- ./.env:/app/.env
stop_grace_period: 30s
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
deploy:
resources:
limits:
cpus: "1.0"
memory: 1024M
postgres:
image: postgres:15-alpine
restart: unless-stopped
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=maverick_mcp
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
deploy:
resources:
limits:
cpus: "0.5"
memory: 512M
redis:
image: redis:7-alpine
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
volumes:
- redis-data:/data
ports:
- "6379:6379"
deploy:
resources:
limits:
cpus: "0.25"
memory: 256M
volumes:
postgres-data:
redis-data: