-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
86 lines (82 loc) · 2 KB
/
docker-compose.yml
File metadata and controls
86 lines (82 loc) · 2 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
services:
nginx:
image: nginx:alpine
ports:
- "80:80"
# - "443:443"
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
# - ./docker/nginx/certs:/etc/nginx/certs:ro
depends_on:
web:
condition: service_healthy
agent-api:
condition: service_healthy
memory-api:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:80/"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
web:
build:
context: .
dockerfile: docker/web/Dockerfile
expose:
- "3000"
environment:
- NODE_ENV=production
- DOCKER=1
- AGENT_API_URL=http://agent-api:3001
- MEMORY_API_URL=http://memory-api:3002
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3000/"]
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
agent-api:
build:
context: .
dockerfile: docker/agent-api/Dockerfile
expose:
- "3001"
volumes:
- ./:/workspace:ro
- cursor-data:/root/.local/share/cursor-agent
- ./.memory:/workspace/.memory:rw
environment:
- AITEAM_BMAD_ROOT=/workspace
- PORT=3001
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3001/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
memory-api:
build:
context: .
dockerfile: docker/memory-api/Dockerfile
expose:
- "3002"
volumes:
- ./:/workspace:rw
- ./.memory:/workspace/.memory:rw
environment:
- AITEAM_BMAD_ROOT=/workspace
- PORT=3002
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3002/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
volumes:
cursor-data: