-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.clickhouse.yaml
58 lines (53 loc) · 1.88 KB
/
docker-compose.clickhouse.yaml
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
version: "3.8"
services:
clickhouse-zookeeper:
image: zookeeper:latest
container_name: clickhouse-zookeeper
hostname: clickhouse-zookeeper
restart: unless-stopped
ports:
- 2181:2181
- 2182:2182
clickhouse-01:
image: yandex/clickhouse-server:latest
container_name: clickhouse-01
hostname: clickhouse-01
restart: unless-stopped
ports:
- 8123:8123
- 9001:9000
volumes:
- ./clickhouse/config/clickhouse_config.xml:/etc/clickhouse-server/config.xml
- ./clickhouse/config/clickhouse_metrika.xml:/etc/clickhouse-server/metrika.xml
- ./clickhouse/config/macros/macros-01.xml:/etc/clickhouse-server/config.d/macros.xml
- ./clickhouse/config/users.xml:/etc/clickhouse-server/users.xml
- 01_db:/var/lib/clickhouse
ulimits:
nofile:
soft: 262144
hard: 262144
depends_on:
- clickhouse-zookeeper
clickhouse-02:
image: yandex/clickhouse-server
hostname: clickhouse-02
container_name: clickhouse-02
ports:
- 9002:9000
volumes:
- ./clickhouse/config/clickhouse_config.xml:/etc/clickhouse-server/config.xml
- ./clickhouse/config/clickhouse_metrika.xml:/etc/clickhouse-server/metrika.xml
- ./clickhouse/config/macros/macros-02.xml:/etc/clickhouse-server/config.d/macros.xml
- ./clickhouse/config/users.xml:/etc/clickhouse-server/users.xml
- 02_db:/var/lib/clickhouse
ulimits:
nofile:
soft: 262144
hard: 262144
depends_on:
- clickhouse-zookeeper
volumes:
01_db:
name: clickhouse-01_server_data
02_db:
name: clickhouse-02_server_data