-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (73 loc) · 1.61 KB
/
docker-compose.yml
File metadata and controls
77 lines (73 loc) · 1.61 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
services:
redis:
image: redis:7-alpine
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
mcp:
build:
context: ./mcp-server
ports:
- "9111:9111"
env_file: .env
environment:
MCP_HOST: "0.0.0.0"
API_SERVER_URL: http://api:8002
restart: unless-stopped
scheduler:
build:
context: .
dockerfile: app/Dockerfile
env_file: .env
environment:
REDIS_URL: redis://redis:6379
MAILNET_SERVER_URL: http://mcp:9111/mcp
SCHEDULE_HOST: "0.0.0.0"
working_dir: /app/app
command: ["python", "apscheduler_service.py"]
dns:
- 8.8.8.8
- 8.8.4.4
depends_on:
redis:
condition: service_healthy
mcp:
condition: service_started
restart: unless-stopped
api:
build:
context: .
dockerfile: app/Dockerfile
ports:
- "8002:8002"
env_file: .env
environment:
REDIS_URL: redis://redis:6379
MAILNET_SERVER_URL: http://mcp:9111/mcp
SCHEDULE_HOST: scheduler
working_dir: /app/app
command: ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8002"]
dns:
- 8.8.8.8
- 8.8.4.4
depends_on:
redis:
condition: service_healthy
mcp:
condition: service_started
scheduler:
condition: service_started
restart: unless-stopped
frontend:
build:
context: ./frontend
ports:
- "3000:3000"
environment:
FASTAPI_URL: http://api:8002/agent
depends_on:
- api
restart: unless-stopped