-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
266 lines (250 loc) · 5.99 KB
/
docker-compose.yml
File metadata and controls
266 lines (250 loc) · 5.99 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
version: '3'
services:
zookeeper:
image: confluentinc/cp-zookeeper:7.5.0
environment:
ZOOKEEPER_CLIENT_PORT: 2181
networks:
- example-net
healthcheck:
test: ["CMD", "echo", "ruok", "|", "nc", "localhost", "2181"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: gateway-redis
ports:
- "6379:6379"
restart: unless-stopped
networks:
- example-net
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
kafka:
image: confluentinc/cp-kafka:7.5.0
depends_on:
zookeeper:
condition: service_healthy
ports:
- "9092:9092"
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
networks:
- example-net
healthcheck:
test: [ "CMD", "kafka-topics", "--bootstrap-server", "kafka:9092", "--list" ]
interval: 15s
timeout: 10s
retries: 5
analyze-db:
image: postgres:latest
container_name: analyze-postgres
restart: unless-stopped
ports:
- "5432:5432"
environment:
POSTGRES_DB: analyze-db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- analyze-db-data:/var/lib/postgresql/data
networks:
- example-net
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
git-db:
image: postgres:latest
container_name: git-postgres
restart: unless-stopped
ports:
- "5433:5432"
environment:
POSTGRES_DB: git-db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- git-db-data:/var/lib/postgresql/data
networks:
- example-net
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
user-db:
image: postgres:latest
container_name: user-db
restart: unless-stopped
environment:
POSTGRES_DB: user-db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- "5434:5432"
volumes:
- user-db-data:/var/lib/postgresql/data
networks:
- example-net
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
neo4j:
image: neo4j:5.18
container_name: context-neo4j
restart: unless-stopped
ports:
- 7474:7474
- 7687:7687
environment:
- NEO4J_AUTH=neo4j/password123
volumes:
- ./data:/data
networks:
- example-net
healthcheck:
test: ["CMD", "cypher-shell", "-u", "neo4j", "-p", "password123", "RETURN 1;"]
interval: 15s
timeout: 10s
retries: 5
ngrok:
image: ngrok/ngrok:latest
container_name: devsync-ngrok
restart: unless-stopped
command: http host.docker.internal:8081
environment:
- NGROK_AUTHTOKEN=${NGROK_AUTHTOKEN}
ports:
- "4040:4040"
networks:
- example-net
depends_on:
git-service:
condition: service_healthy
git-service:
build: ./git-service
ports:
- "8081:8080"
depends_on:
git-db:
condition: service_healthy
kafka:
condition: service_healthy
networks:
- example-net
environment:
GITHUB_TOKEN: ${GITHUB_TOKEN}
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/actuator/health" ]
interval: 10s
timeout: 5s
retries: 5
analyze-service:
build: ./analyze-service
ports:
- "8080:8080"
depends_on:
analyze-db:
condition: service_healthy
kafka:
condition: service_healthy
networks:
- example-net
environment:
OPENAI_TOKEN: ${OPENAI_TOKEN}
OPENAI_BASE_URL: ${OPENAI_BASE_URL}
OPENAI_MODEL: ${OPENAI_MODEL}
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/actuator/health" ]
interval: 10s
timeout: 5s
retries: 5
context-graph-service:
build: ./context-graph-service
ports:
- "8085:8080"
depends_on:
neo4j:
condition: service_healthy
kafka:
condition: service_healthy
networks:
- example-net
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/actuator/health" ]
interval: 10s
timeout: 5s
retries: 5
auth-service:
build: ./auth-service
ports:
- "8082:8080"
depends_on:
user-db:
condition: service_healthy
kafka:
condition: service_healthy
environment:
GITHUB_CLIENT_ID: ${GITHUB_CLIENT_ID}
GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET}
networks:
- example-net
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/actuator/health" ]
interval: 10s
timeout: 5s
retries: 5
api-gateway:
build: ./api-gateway
ports:
- "8000:8080"
depends_on:
git-service:
condition: service_healthy
analyze-service:
condition: service_healthy
context-graph-service:
condition: service_healthy
auth-service:
condition: service_healthy
eureka-server:
condition: service_healthy
networks:
- example-net
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/actuator/health" ]
interval: 10s
timeout: 5s
retries: 5
eureka-server:
build: ./eureka-server
ports:
- "8761:8761"
networks:
- example-net
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8761/actuator/health" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
analyze-db-data:
git-db-data:
user-db-data:
networks:
example-net:
driver: bridge