-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-clickhouse-cluster-2s-1r.yml
92 lines (92 loc) · 3.13 KB
/
docker-compose-clickhouse-cluster-2s-1r.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
services:
clickhouse-2s-1r-node1-main:
image: clickhouse/clickhouse-server:22.12.3.5-alpine
container_name: clickhouse-2s-1r-node1-main
hostname: 172.16.0.152
ports:
- "1123:1123"
- "1900:1900"
- "1904:1904"
- "1909:1909"
volumes:
- ./clickhouse/2s_1r/node1/main/data:/var/lib/clickhouse
- ./clickhouse/2s_1r/node1/main/config/config.xml:/etc/clickhouse-server/config.xml
- ./clickhouse/2s_1r/node1/main/config/users.xml:/etc/clickhouse-server/users.xml
- ./clickhouse/2s_1r/node1/main/config/metrika.xml:/etc/clickhouse-server/metrika.xml
- ./clickhouse/2s_1r/node1/main/log:/var/log/clickhouse-server
ulimits:
nproc: 65535
nofile:
soft: 262144
hard: 262144
networks:
- net-ck-2s-1r
clickhouse-2s-1r-node1-sub:
image: clickhouse/clickhouse-server:22.12.3.5-alpine
container_name: clickhouse-2s-1r-node1-sub
hostname: 172.16.0.152
ports:
- "2123:2123"
- "2900:2900"
- "2904:2904"
- "2909:2909"
volumes:
- ./clickhouse/2s_1r/node1/sub/data:/var/lib/clickhouse
- ./clickhouse/2s_1r/node1/sub/config/config.xml:/etc/clickhouse-server/config.xml
- ./clickhouse/2s_1r/node1/sub/config/users.xml:/etc/clickhouse-server/users.xml
- ./clickhouse/2s_1r/node1/sub/config/metrika.xml:/etc/clickhouse-server/metrika.xml
- ./clickhouse/2s_1r/node1/sub/log:/var/log/clickhouse-server
ulimits:
nproc: 65535
nofile:
soft: 262144
hard: 262144
networks:
- net-ck-2s-1r
clickhouse-2s-1r-node2-main:
image: clickhouse/clickhouse-server:22.12.3.5-alpine
container_name: clickhouse-2s-1r-node2-main
hostname: 172.16.0.152
ports:
- "3123:3123"
- "3900:3900"
- "3904:3904"
- "3909:3909"
volumes:
- ./clickhouse/2s_1r/node2/main/data:/var/lib/clickhouse
- ./clickhouse/2s_1r/node2/main/config/config.xml:/etc/clickhouse-server/config.xml
- ./clickhouse/2s_1r/node2/main/config/users.xml:/etc/clickhouse-server/users.xml
- ./clickhouse/2s_1r/node2/main/config/metrika.xml:/etc/clickhouse-server/metrika.xml
- ./clickhouse/2s_1r/node2/main/log:/var/log/clickhouse-server
ulimits:
nproc: 65535
nofile:
soft: 262144
hard: 262144
networks:
- net-ck-2s-1r
clickhouse-2s-1r-node2-sub:
image: clickhouse/clickhouse-server:22.12.3.5-alpine
container_name: clickhouse-2s-1r-node2-sub
hostname: 172.16.0.152
ports:
- "4123:4123"
- "4900:4900"
- "4904:4904"
- "4909:4909"
volumes:
- ./clickhouse/2s_1r/node2/sub/data:/var/lib/clickhouse
- ./clickhouse/2s_1r/node2/sub/config/config.xml:/etc/clickhouse-server/config.xml
- ./clickhouse/2s_1r/node2/sub/config/users.xml:/etc/clickhouse-server/users.xml
- ./clickhouse/2s_1r/node2/sub/config/metrika.xml:/etc/clickhouse-server/metrika.xml
- ./clickhouse/2s_1r/node2/sub/log:/var/log/clickhouse-server
ulimits:
nproc: 65535
nofile:
soft: 262144
hard: 262144
networks:
- net-ck-2s-1r
networks:
net-ck-2s-1r:
driver: bridge