-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
165 lines (153 loc) · 4.39 KB
/
docker-compose.yml
File metadata and controls
165 lines (153 loc) · 4.39 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
version: '3.9'
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: agent_workflow
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
nats:
image: nats:2.10-alpine
command: ["-js", "-m", "8222"]
ports:
- "4222:4222"
- "8222:8222"
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:8222/healthz || exit 1"]
interval: 5s
timeout: 5s
retries: 5
api-gateway:
build:
context: .
dockerfile: services/api-gateway/Dockerfile
environment:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/agent_workflow
NATS_URL: nats://nats:4222
API_GATEWAY_PORT: "3001"
ports:
- "3001:3001"
depends_on:
postgres:
condition: service_healthy
nats:
condition: service_healthy
onboarding-service:
build:
context: .
dockerfile: services/onboarding-service/Dockerfile
environment:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/agent_workflow
NATS_URL: nats://nats:4222
depends_on:
postgres:
condition: service_healthy
nats:
condition: service_healthy
connection-registry:
build:
context: .
dockerfile: services/connection-registry/Dockerfile
environment:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/agent_workflow
NATS_URL: nats://nats:4222
depends_on:
postgres:
condition: service_healthy
nats:
condition: service_healthy
rag-registry:
build:
context: .
dockerfile: services/rag-registry/Dockerfile
environment:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/agent_workflow
NATS_URL: nats://nats:4222
depends_on:
postgres:
condition: service_healthy
nats:
condition: service_healthy
agent-builder:
build:
context: .
dockerfile: services/agent-builder-py/Dockerfile
environment:
DATABASE_URL: postgresql+asyncpg://postgres:postgres@postgres:5432/agent_workflow
NATS_URL: nats://nats:4222
OPENAI_API_KEY: ${OPENAI_API_KEY:-}
depends_on:
postgres:
condition: service_healthy
nats:
condition: service_healthy
scheduler-service:
build:
context: .
dockerfile: services/scheduler-service/Dockerfile
environment:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/agent_workflow
NATS_URL: nats://nats:4222
AGENT_RUNTIME_IMAGE: agent-runtime:latest
depends_on:
postgres:
condition: service_healthy
nats:
condition: service_healthy
agent-runtime:
build:
context: .
dockerfile: services/agent-runtime-py/Dockerfile
environment:
DATABASE_URL: postgresql+asyncpg://postgres:postgres@postgres:5432/agent_workflow
NATS_URL: nats://nats:4222
OPENAI_API_KEY: ${OPENAI_API_KEY:-}
depends_on:
postgres:
condition: service_healthy
nats:
condition: service_healthy
websocket-service:
build:
context: .
dockerfile: services/websocket-service/Dockerfile
environment:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/agent_workflow
NATS_URL: nats://nats:4222
WEBSOCKET_PORT: "3002"
ports:
- "3002:3002"
depends_on:
postgres:
condition: service_healthy
nats:
condition: service_healthy
frontend:
build:
context: .
dockerfile: frontend/web/Dockerfile
args:
NEXT_PUBLIC_API_URL: http://localhost:3001/api/v1
NEXT_PUBLIC_WS_URL: ws://localhost:3002/ws
NEXT_PUBLIC_FIREBASE_API_KEY: ${NEXT_PUBLIC_FIREBASE_API_KEY}
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: ${NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN}
NEXT_PUBLIC_FIREBASE_PROJECT_ID: ${NEXT_PUBLIC_FIREBASE_PROJECT_ID}
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: ${NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET}
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: ${NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID}
NEXT_PUBLIC_FIREBASE_APP_ID: ${NEXT_PUBLIC_FIREBASE_APP_ID}
ports:
- "3000:3000"
depends_on:
- api-gateway
- websocket-service
volumes:
pgdata: