forked from concrnt/concrnt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
248 lines (233 loc) · 5.07 KB
/
compose.yml
File metadata and controls
248 lines (233 loc) · 5.07 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
services:
# main components
ccgateway:
build:
context: .
dockerfile: ./cmd/gateway/Dockerfile
restart: always
links:
- db
- redis
- loki
- tempo
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
loki:
condition: service_started
tempo:
condition: service_started
ports:
- "8080:8080"
volumes:
- ./_etc:/etc/concrnt/:ro
networks:
- external
- internal
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
extra_hosts:
- "host.docker.internal:172.29.253.172"
ccapi:
build:
context: .
dockerfile: ./cmd/api/Dockerfile
restart: always
links:
- db
- redis
- loki
- tempo
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
loki:
condition: service_started
tempo:
condition: service_started
ports:
- "8000:8000"
volumes:
- ./_etc:/etc/concrnt/:ro
networks:
- external
- internal
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
ccwebui:
build:
context: .
dockerfile: ./web/Dockerfile
restart: always
links:
- loki
depends_on:
loki:
condition: service_started
ports:
- "8001:80"
networks:
- internal
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
hyperproxy:
image: ghcr.io/concrnt/hyperproxy:latest
restart: always
expose:
- 8080
networks:
- external
- internal
db:
restart: always
image: postgres:16-bookworm
links:
- loki
depends_on:
loki:
condition: service_started
healthcheck:
test: "pg_isready -U postgres"
interval: 5s
retries: 20
volumes:
- ./_composeData/db:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- "POSTGRES_PASSWORD=postgres"
- "POSTGRES_DB=concurrent"
networks:
- internal
- external
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
postgres-exporter:
image: quay.io/prometheuscommunity/postgres-exporter
environment:
- "DATA_SOURCE_NAME=postgresql://postgres:postgres@db:5432/postgres?sslmode=disable"
ports:
- 9187:9187
networks:
- internal
redis:
restart: always
image: redis:7-bookworm
links:
- loki
depends_on:
loki:
condition: service_started
volumes:
- ./_composeData/redis:/data
healthcheck:
test: "redis-cli ping"
interval: 5s
retries: 20
ports:
- "6379:6379"
networks:
- internal
- external
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
redis-exporter:
image: oliver006/redis_exporter:v1.6.0-alpine
ports:
- 9121:9121
networks:
- internal
command:
- '--redis.addr=redis://redis:6379'
memcached:
image: memcached:1.6-bookworm
links:
- loki
depends_on:
loki:
condition: service_started
ports:
- "11211:11211"
networks:
- internal
- external
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
memcached-exporter:
image: prom/memcached-exporter:v0.6.0
ports:
- 9150:9150
networks:
- internal
command:
- '--memcached.address=memcached:11211'
grafana:
image: grafana/grafana:latest
volumes:
- ./_dev/grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
- ./_dev/grafana-dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml
- ./_dev/dashboards:/etc/grafana/dashboards
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
ports:
- "3000:3000"
networks:
- external
- internal
prometheus:
image: prom/prometheus:latest
command:
- --config.file=/etc/prometheus.yaml
- --web.enable-remote-write-receiver
- --enable-feature=exemplar-storage
volumes:
- ./_dev/prometheus.yaml:/etc/prometheus.yaml
- ./_composeData/prometheus:/etc/prometheus
ports:
- "9090:9090"
networks:
- external
- internal
loki:
image: grafana/loki:2.9.2
ports:
- "3100:3100"
command: -config.file=/etc/loki/local-config.yaml
volumes:
- ./_composeData/loki:/data/loki
networks:
- internal
- external
tempo:
image: grafana/tempo:latest
ports:
- "4318:4318"
command: [ "-config.file=/etc/tempo.yaml" ]
volumes:
- ./_dev/tempo.yaml:/etc/tempo.yaml
- ./_composeData/tempo:/tmp/tempo
networks:
- internal
- external
networks:
external:
internal:
internal: true