-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
234 lines (218 loc) · 4.82 KB
/
docker-compose.yml
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
version: '2.4'
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ports:
- 22181:2181
networks:
- backend
kafka:
image: confluentinc/cp-kafka:latest
depends_on:
- zookeeper
ports:
- 29092:29092
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://kafka:29092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
networks:
- backend
clickhouse:
image: clickhouse/clickhouse-server:22.7
restart: on-failure
environment:
CLICKHOUSE_DB: uptrace
healthcheck:
test: ['CMD', 'wget', '--spider', '-q', 'localhost:8123/ping']
interval: 1s
timeout: 1s
retries: 30
volumes:
- ch_data_2:/var/lib/clickhouse
ports:
- '8123:8123'
- '9000:9000'
networks:
- backend
uptrace:
image: 'uptrace/uptrace-dev:latest'
restart: on-failure
volumes:
- uptrace_data:/var/lib/uptrace
- ./test/uptrace.yml:/etc/uptrace/uptrace.yml
#environment:
# - DEBUG=2
ports:
- '14317:14317'
- '14318:14318'
depends_on:
- clickhouse
networks:
- backend
otel-collector:
image: otel/opentelemetry-collector-contrib:0.70.0
restart: on-failure
user: '0:0' # required for logs
volumes:
- ./test/otel-collector.yaml:/etc/otelcol-contrib/config.yaml
- /var/lib/docker/containers:/var/lib/docker/containers:ro
- /var/log:/var/log:ro
ports:
- '4317:4317'
- '4318:4318'
networks:
- backend
alertmanager:
image: prom/alertmanager:v0.24.0
restart: on-failure
volumes:
- ./test/alertmanager.yml:/etc/alertmanager/config.yml
- alertmanager_data:/alertmanager
ports:
- 9093:9093
command:
- '--config.file=/etc/alertmanager/config.yml'
- '--storage.path=/alertmanager'
networks:
- backend
mailhog:
image: mailhog/mailhog:v1.0.1
restart: on-failure
ports:
- '8025:8025'
networks:
- backend
vector:
image: timberio/vector:0.24.X-alpine
volumes:
- ./test/vector.toml:/etc/vector/vector.toml:ro
networks:
- backend
postgres:
image: postgres
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
logging:
options:
max-size: 10m
max-file: "3"
ports:
- '5432:5432'
volumes:
- postgres:/var/lib/postgresql/data
- ./test/db-init.sql:/docker-entrypoint-initdb.d/create_tables.sql
networks:
- backend
mongo:
restart: always
image: mongo:7.0-rc
volumes:
- mongo:/data/db
networks:
- backend
ports:
- 27017:27017
expose:
- 27017
environment:
MONGO_INITDB_ROOT_USERNAME: mongo
MONGO_INITDB_ROOT_PASSWORD: password
keycloak:
image: quay.io/keycloak/keycloak
environment:
DB_VENDOR: postgres
DB_ADDR: postgres
DB_USER: postgres
DB_PASSWORD: password
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
command:
- "start-dev"
- "--features=declarative-user-profile"
ports:
- 8080:8080
depends_on:
- postgres
networks:
- backend
service-characters:
build:
context: .
dockerfile: build/characters.Dockerfile
ports:
- 8081:8081
depends_on:
- uptrace
- postgres
volumes:
- ./test/docker_config.yaml:/etc/service/config.yaml
networks:
- envoymesh
- backend
service-chat:
build:
context: .
dockerfile: build/chat.Dockerfile
ports:
- 8180:8180
depends_on:
- service-characters
- kafka
- uptrace
- postgres
volumes:
- ./test/docker_config.yaml:/etc/service/config.yaml
networks:
- envoymesh
- backend
service-game:
build:
context: .
dockerfile: build/game.Dockerfile
ports:
- 8082:8082
depends_on:
- service-characters
- uptrace
volumes:
- ./test/docker_config.yaml:/etc/service/config.yaml
networks:
- envoymesh
- backend
service-envoy:
build:
context: ./build/envoy
dockerfile: Dockerfile
ports:
- "9090:9090"
- "9901:9901"
expose:
- "80"
- "8081"
networks:
- envoymesh
- backend
volumes:
uptrace_data:
driver: local
ch_data_2:
driver: local
alertmanager_data:
driver: local
postgres:
driver: local
mongo:
driver: local
networks:
envoymesh:
backend:
passthrough: