Repository navigation
Expand file tree
/
Copy pathcompose.yaml
More file actions
132 lines (125 loc) · 2.82 KB
/
Copy pathcompose.yaml
File metadata and controls
132 lines (125 loc) · 2.82 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
120
121
122
123
124
125
126
127
128
129
130
131
132
services:
# PostgreSQL Database
postgres:
image: postgres:16-alpine
container_name: wingman-postgres
environment:
POSTGRES_USER: wingman
POSTGRES_PASSWORD: wingman
POSTGRES_DB: wingman
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U wingman"]
interval: 10s
timeout: 5s
retries: 5
networks:
- wingman-network
# Chroma Vector Store
chroma:
image: ghcr.io/chroma-core/chroma:latest
container_name: wingman-chroma
volumes:
- chroma_data:/chroma/chroma
environment:
ALLOW_RESET: true
ANONYMIZED_TELEMETRY: false
ports:
- "8001:8000"
healthcheck:
test: ["CMD-SHELL", "timeout 1 bash -c '</dev/tcp/localhost/8000' || exit 1"]
interval: 10s
timeout: 5s
retries: 5
networks:
- wingman-network
# Pi Durable owns persisted agent sessions and Slack reply delivery.
runtime:
build: ./runtime
env_file:
- .env
environment:
PI_HOST: 0.0.0.0
PI_DATA_DIR: /data
volumes:
- pi_data:/data
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://localhost:8002/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
interval: 10s
timeout: 5s
retries: 5
networks:
- wingman-network
restart: unless-stopped
# Backend API
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: wingman-backend
env_file:
- .env
ports:
- "8000:8000"
environment:
PI_RUNTIME_URL: http://runtime:8002
depends_on:
runtime:
condition: service_healthy
postgres:
condition: service_healthy
chroma:
condition: service_healthy
volumes:
- ./backend:/app
networks:
- wingman-network
restart: unless-stopped
# Slack Bot (separate service for socket mode)
bot:
build:
context: ./backend
dockerfile: Dockerfile
container_name: wingman-bot
command: python run_bot.py
env_file:
- .env
environment:
PI_RUNTIME_URL: http://runtime:8002
depends_on:
runtime:
condition: service_healthy
postgres:
condition: service_healthy
chroma:
condition: service_healthy
volumes:
- ./backend:/app
networks:
- wingman-network
restart: unless-stopped
# Frontend Dashboard
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: wingman-frontend
env_file:
- .env
ports:
- "3000:8000"
depends_on:
- backend
networks:
- wingman-network
restart: unless-stopped
volumes:
postgres_data:
chroma_data:
pi_data:
networks:
wingman-network:
driver: bridge