forked from uptrace/uptrace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
164 lines (152 loc) · 4.61 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
version: '3'
services:
clickhouse-1:
image: clickhouse/clickhouse-server:23.4
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:23.4
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:23.4
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:23.4
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.70.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'
mailhog:
image: mailhog/mailhog:v1.0.1
restart: on-failure
ports:
- '1025:1025'
- '8025:8025'
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:
- 8080:8080
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
command: start-dev
grafana:
image: grafana/grafana:9.5.3
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'
volumes:
ch1_data:
ch2_data:
ch3_data:
ch4_data:
pg_data:
alertmanager_data: