-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
91 lines (90 loc) · 2.18 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
version: "3.3"
services:
zookeeper-node-01:
image: zookeeper
container_name: zookeeper-node-01
ports:
- "2181:2181"
- "2182:2182"
networks:
- clickhouse-cluster
clickhouse-node-01:
image: yandex/clickhouse-server
container_name: clickhouse-node-01
volumes:
- ./config/node-01-config.xml:/etc/clickhouse-server/config.xml
- ./config/users.xml:/etc/clickhouse-server/users.xml
ports:
- "9000:9000"
- "8123:8123"
- "9363:9363"
ulimits:
nofile:
soft: 262144
hard: 262144
networks:
- clickhouse-cluster
depends_on:
- zookeeper-node-01
clickhouse-node-02:
image: yandex/clickhouse-server
container_name: clickhouse-node-02
volumes:
- ./config/node-02-config.xml:/etc/clickhouse-server/config.xml
- ./config/users.xml:/etc/clickhouse-server/users.xml
ports:
- "9001:9000"
- "8124:8123"
- "9364:9363"
ulimits:
nofile:
soft: 262144
hard: 262144
networks:
- clickhouse-cluster
depends_on:
- zookeeper-node-01
clickhouse-node-03:
image: yandex/clickhouse-server
container_name: clickhouse-node-03
volumes:
- ./config/node-03-config.xml:/etc/clickhouse-server/config.xml
- ./config/users.xml:/etc/clickhouse-server/users.xml
ports:
- "9002:9000"
- "8125:8123"
ulimits:
nofile:
soft: 262144
hard: 262144
networks:
- clickhouse-cluster
depends_on:
- zookeeper-node-01
clickhouse-node-04:
image: yandex/clickhouse-server
container_name: clickhouse-node-04
volumes:
- ./config/node-04-config.xml:/etc/clickhouse-server/config.xml
- ./config/users.xml:/etc/clickhouse-server/users.xml
ports:
- "9003:9000"
- "8126:8123"
ulimits:
nofile:
soft: 262144
hard: 262144
networks:
- clickhouse-cluster
depends_on:
- zookeeper-node-01
clickhouse-php-client:
build:
context: .
dockerfile: docker/Dockerfile
container_name: clickhouse-php-client
networks:
- clickhouse-cluster
networks:
clickhouse-cluster:
driver: bridge