-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (74 loc) · 2.71 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
services:
tabix-ui:
image: spoonest/clickhouse-tabix-web-client
ports:
- 8080:80
environment:
- CH_NAME=sample
- CH_HOST=localhost:9090
- CH_LOGIN=admin
- CH_PASSWORD=admin
depends_on: ["chproxy"]
chproxy:
image: tacyuuhon/clickhouse-chproxy:latest
ports:
- 9090:9090
volumes:
- ./chproxy/config.yml:/opt/config.yml:ro
zookeeper:
image: zookeeper:3.5
expose: ["2181"]
environment:
ZOO_AUTOPURGE_PURGEINTERVAL: 1
volumes:
- ./data/zookeeper:/data
- ./data/zookeeper-log:/datalog
ch-01-01:
image: yandex/clickhouse-server:21.4.5-alpine
hostname: ch-01-01
volumes:
- ./data/clickhouse/ch-01-01/:/var/lib/clickhouse
- ./clickhouse/initdb.d/:/docker-entrypoint-initdb.d:ro
- ./clickhouse/users.d/users.xml:/etc/clickhouse-server/users.d/users.xml:ro
- ./clickhouse/config.d/config.xml:/etc/clickhouse-server/config.d/config.xml:ro
- ./clickhouse/config.d/ch-01-01.xml:/etc/clickhouse-server/config.d/node-config.xml:ro
depends_on:
- zookeeper
ch-01-02:
image: yandex/clickhouse-server:21.4.5-alpine
hostname: ch-01-02
volumes:
- ./data/clickhouse/ch-01-02/:/var/lib/clickhouse
- ./clickhouse/initdb.d/:/docker-entrypoint-initdb.d:ro
- ./clickhouse/users.d/users.xml:/etc/clickhouse-server/users.d/users.xml:ro
- ./clickhouse/config.d/config.xml:/etc/clickhouse-server/config.d/config.xml:ro
- ./clickhouse/config.d/ch-01-02.xml:/etc/clickhouse-server/config.d/node-config.xml:ro
depends_on:
- zookeeper
ch-02-01:
image: yandex/clickhouse-server:21.4.5-alpine
hostname: ch-02-01
volumes:
- ./data/clickhouse/ch-02-01/:/var/lib/clickhouse
- ./clickhouse/initdb.d/:/docker-entrypoint-initdb.d:ro
- ./clickhouse/users.d/users.xml:/etc/clickhouse-server/users.d/users.xml:ro
- ./clickhouse/config.d/config.xml:/etc/clickhouse-server/config.d/config.xml:ro
- ./clickhouse/config.d/ch-02-01.xml:/etc/clickhouse-server/config.d/node-config.xml:ro
depends_on:
- zookeeper
ch-02-02:
image: yandex/clickhouse-server:21.4.5-alpine
hostname: ch-02-02
volumes:
- ./data/clickhouse/ch-02-02/:/var/lib/clickhouse
- ./clickhouse/initdb.d/:/docker-entrypoint-initdb.d:ro
- ./clickhouse/users.d/users.xml:/etc/clickhouse-server/users.d/users.xml:ro
- ./clickhouse/config.d/config.xml:/etc/clickhouse-server/config.d/config.xml:ro
- ./clickhouse/config.d/ch-02-02.xml:/etc/clickhouse-server/config.d/node-config.xml:ro
depends_on:
- zookeeper
ch-client:
image: yandex/clickhouse-client:latest
entrypoint: ["/bin/sh"]
stdin_open: true
tty: true