forked from tetafro/clickhouse-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
71 lines (70 loc) · 1.68 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
version: '2'
services:
zookeeper:
image: zookeeper:3.6.2
container_name: zookeeper
hostname: zookeeper
networks:
clickhouse-network:
ipv4_address: 172.23.0.10
clickhouse01:
image: yandex/clickhouse-server:20.12
container_name: clickhouse01
hostname: clickhouse01
networks:
clickhouse-network:
ipv4_address: 172.23.0.11
ports:
- "127.0.0.1:8123:8123"
- "127.0.0.1:9001:9000"
volumes:
- ${PWD}/clickhouse01:/etc/clickhouse-server
depends_on:
- zookeeper
clickhouse02:
image: yandex/clickhouse-server:20.12
container_name: clickhouse02
hostname: clickhouse02
networks:
clickhouse-network:
ipv4_address: 172.23.0.12
ports:
- "127.0.0.1:8124:8123"
- "127.0.0.1:9002:9000"
volumes:
- ${PWD}/clickhouse02:/etc/clickhouse-server
depends_on:
- zookeeper
clickhouse03:
image: yandex/clickhouse-server:20.12
container_name: clickhouse03
hostname: clickhouse03
networks:
clickhouse-network:
ipv4_address: 172.23.0.13
ports:
- "127.0.0.1:8125:8123"
- "127.0.0.1:9003:9000"
volumes:
- ${PWD}/clickhouse03:/etc/clickhouse-server
depends_on:
- zookeeper
clickhouse04:
image: yandex/clickhouse-server:20.12
container_name: clickhouse04
hostname: clickhouse04
networks:
clickhouse-network:
ipv4_address: 172.23.0.14
ports:
- "127.0.0.1:8126:8123"
- "127.0.0.1:9004:9000"
volumes:
- ${PWD}/clickhouse04:/etc/clickhouse-server
depends_on:
- zookeeper
networks:
clickhouse-network:
ipam:
config:
- subnet: 172.23.0.0/24