forked from uptrace/uptrace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
198 lines (184 loc) · 5.52 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
version: '3'
services:
clickhouse-1:
image: clickhouse/clickhouse-server:24.7
restart: on-failure
environment:
CLICKHOUSE_DB: uptrace
SHARD: shard1
REPLICA: replica1
KEEPER_ID: 1
healthcheck:
test: ['CMD', 'wget', '--spider', '-q', 'localhost:8123/ping']
interval: 1s
timeout: 1s
retries: 30
user: clickhouse
volumes:
- ch1_data:/var/lib/clickhouse
- ./config/clickhouse/config.xml:/etc/clickhouse-server/config.d/config.xml
- ./config/clickhouse/cluster.xml:/etc/clickhouse-server/config.d/cluster.xml
- ./config/clickhouse/keeper.xml:/etc/clickhouse-server/config.d/keeper.xml
- ./config/clickhouse/users.xml:/etc/clickhouse-server/users.d/users.xml
ports:
- '8123:8123'
- '9000:9000'
- '9440:9440'
extra_hosts:
- 'host.docker.internal:host-gateway'
clickhouse-2:
image: clickhouse/clickhouse-server:24.7
restart: on-failure
environment:
CLICKHOUSE_DB: uptrace
SHARD: shard1
REPLICA: replica2
KEEPER_ID: 2
volumes:
- ch2_data:/var/lib/clickhouse
- ./config/clickhouse/config.xml:/etc/clickhouse-server/config.d/config.xml
- ./config/clickhouse/cluster.xml:/etc/clickhouse-server/config.d/cluster.xml
- ./config/clickhouse/keeper.xml:/etc/clickhouse-server/config.d/keeper.xml
- ./config/clickhouse/users.xml:/etc/clickhouse-server/users.d/users.xml
ports:
- '9001:9000'
extra_hosts:
- 'host.docker.internal:host-gateway'
clickhouse-3:
image: clickhouse/clickhouse-server:24.7
restart: on-failure
environment:
CLICKHOUSE_DB: uptrace
SHARD: shard2
REPLICA: replica1
KEEPER_ID: 3
volumes:
- ch3_data:/var/lib/clickhouse
- ./config/clickhouse/config.xml:/etc/clickhouse-server/config.d/config.xml
- ./config/clickhouse/cluster.xml:/etc/clickhouse-server/config.d/cluster.xml
- ./config/clickhouse/keeper.xml:/etc/clickhouse-server/config.d/keeper.xml
- ./config/clickhouse/users.xml:/etc/clickhouse-server/users.d/users.xml
ports:
- '9002:9000'
extra_hosts:
- 'host.docker.internal:host-gateway'
clickhouse-4:
image: clickhouse/clickhouse-server:24.7
restart: on-failure
environment:
CLICKHOUSE_DB: uptrace
SHARD: shard2
REPLICA: replica2
KEEPER_ID: 4
volumes:
- ch4_data:/var/lib/clickhouse
- ./config/clickhouse/config.xml:/etc/clickhouse-server/config.d/config.xml
- ./config/clickhouse/cluster.xml:/etc/clickhouse-server/config.d/cluster.xml
- ./config/clickhouse/keeper.xml:/etc/clickhouse-server/config.d/keeper.xml
- ./config/clickhouse/users.xml:/etc/clickhouse-server/users.d/users.xml
ports:
- '9003:9000'
extra_hosts:
- 'host.docker.internal:host-gateway'
postgres:
image: postgres:15-alpine
restart: on-failure
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_USER: uptrace
POSTGRES_PASSWORD: uptrace
volumes:
- 'pg_data:/var/lib/postgresql/data/pgdata'
ports:
- '5432:5432'
otelcol:
image: otel/opentelemetry-collector-contrib:0.88.0
restart: on-failure
volumes:
- ./config/otel-collector.yaml:/etc/otelcol-contrib/config.yaml
ports:
- '4317:4317'
- '4318:4318'
extra_hosts:
- 'host.docker.internal:host-gateway'
alertmanager:
image: prom/alertmanager:v0.24.0
restart: on-failure
volumes:
- ./config/alertmanager.yml:/etc/alertmanager/config.yml
- alertmanager_data:/alertmanager
ports:
- 9093:9093
command:
- '--config.file=/etc/alertmanager/config.yml'
- '--storage.path=/alertmanager'
vector:
image: timberio/vector:0.28.X-alpine
volumes:
- ./config/vector.toml:/etc/vector/vector.toml:ro
extra_hosts:
- 'host.docker.internal:host-gateway'
keycloak:
image: quay.io/keycloak/keycloak:19.0.2
restart: on-failure
ports:
- 9090:8080
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
command: start-dev
grafana:
image: grafana/grafana:10.3.1
restart: on-failure
volumes:
- ./config/grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
- ./config/grafana/custom.ini:/etc/grafana/grafana.ini
ports:
- '3000:3000'
extra_hosts:
- 'host.docker.internal:host-gateway'
prometheus:
image: prom/prometheus:v2.36.2
restart: always
volumes:
- ./config/prometheus/:/etc/prometheus/
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
extra_hosts:
- 'host.docker.internal:host-gateway'
node_exporter:
image: quay.io/prometheus/node-exporter:latest
container_name: node_exporter
command:
- '--path.rootfs=/host'
network_mode: host
pid: host
restart: unless-stopped
volumes:
- '/:/host:ro,rslave'
mailpit:
image: axllent/mailpit
restart: always
ports:
- 1025:1025
- 8025:8025
environment:
MP_MAX_MESSAGES: 5000
MP_DATA_FILE: /data/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
volumes:
- mailpit_data:/data
volumes:
ch1_data:
ch2_data:
ch3_data:
ch4_data:
pg_data:
alertmanager_data:
prometheus_data:
mailpit_data: