forked from jayvynl/django-clickhouse-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
60 lines (57 loc) · 1.4 KB
/
compose.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
59
60
x-base-service: &base-service
image: clickhouse/clickhouse-server:${CLICKHOUSE_VERSION:-23.6.2.18}
restart: always
ulimits:
nofile:
soft: 262144
hard: 262144
healthcheck:
test: ["CMD", "clickhouse-client", "-q", "SELECT 1"]
interval: 30s
timeout: 5s
retries: 3
services:
node1:
<<: *base-service
container_name: clickhouse-node1
volumes:
- "node1:/var/lib/clickhouse/"
- "./clickhouse-config/node1/:/etc/clickhouse-server/config.d/"
ports:
- "127.0.0.1:9000:9000"
node2:
<<: *base-service
container_name: clickhouse-node2
volumes:
- "node2:/var/lib/clickhouse/"
- "./clickhouse-config/node2/:/etc/clickhouse-server/config.d/"
ports:
- "127.0.0.1:9001:9000"
node3:
<<: *base-service
container_name: clickhouse-node3
volumes:
- "node3:/var/lib/clickhouse/"
- "./clickhouse-config/node3/:/etc/clickhouse-server/config.d/"
ports:
- "127.0.0.1:9002:9000"
node4:
<<: *base-service
container_name: clickhouse-node4
volumes:
- "node4:/var/lib/clickhouse/"
- "./clickhouse-config/node4/:/etc/clickhouse-server/config.d/"
ports:
- "127.0.0.1:9003:9000"
volumes:
node1:
name: clickhouse-node1
node2:
name: clickhouse-node2
node3:
name: clickhouse-node3
node4:
name: clickhouse-node4
networks:
default:
name: clickhouse-net