-
Notifications
You must be signed in to change notification settings - Fork 81
/
docker-compose.yml
63 lines (62 loc) · 1.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
version: '3.5'
services:
zookeeper:
image: zookeeper:3.7
container_name: zookeeper
hostname: zookeeper
networks:
clickhouse-network:
ipv4_address: 172.23.0.10
clickhouse01:
image: clickhouse/clickhouse-server:22.5
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:9000:9000"
volumes:
- ${PWD}/clickhouse01:/etc/clickhouse-server
depends_on:
- zookeeper
clickhouse02:
image: clickhouse/clickhouse-server:22.5
container_name: clickhouse02
hostname: clickhouse02
networks:
clickhouse-network:
ipv4_address: 172.23.0.12
volumes:
- ${PWD}/clickhouse02:/etc/clickhouse-server
depends_on:
- zookeeper
clickhouse03:
image: clickhouse/clickhouse-server:22.5
container_name: clickhouse03
hostname: clickhouse03
networks:
clickhouse-network:
ipv4_address: 172.23.0.13
volumes:
- ${PWD}/clickhouse03:/etc/clickhouse-server
depends_on:
- zookeeper
clickhouse04:
image: clickhouse/clickhouse-server:22.5
container_name: clickhouse04
hostname: clickhouse04
networks:
clickhouse-network:
ipv4_address: 172.23.0.14
volumes:
- ${PWD}/clickhouse04:/etc/clickhouse-server
depends_on:
- zookeeper
networks:
clickhouse-network:
name: clickhouse-network
ipam:
config:
- subnet: 172.23.0.0/24