-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
92 lines (92 loc) · 2.89 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
92
version: '2'
services:
etcd:
image: quay.io/coreos/etcd:latest
entrypoint: /usr/local/bin/etcd --name clickhouse-etcd --data-dir /var/lib/etcd --listen-client-urls http://0.0.0.0:2379 --advertise-client-urls http://0.0.0.0:2379 --listen-peer-urls http://0.0.0.0:2380 --initial-advertise-peer-urls http://0.0.0.0:2380 --initial-cluster clickhouse-etcd=http://0.0.0.0:2380 --initial-cluster-token clickhouse-etcd --initial-cluster-state new --auto-compaction-retention 1
zktraffic:
build:
context: .
dockerfile: Dockerfile-zktraffic
network_mode: "service:zetcd"
depends_on:
- zetcd
entrypoint: /usr/bin/zk-dump --iface eth0
zetcd:
# image: zookeeper
image: clickhousepro/clickhouse-zetcd:latest
build:
context: .
dockerfile: Dockerfile-zetcd
links:
- etcd
clickhouse-ru-1.local:
extends:
file: clickhouse-compose.yml
service: clickhouse.base
environment:
CLICKHOUSE_SHARD: 1
CLICKHOUSE_REPLICA: clickhouse-ru-1.local
links:
- etcd
- zetcd
clickhouse-ru-2.local:
extends:
file: clickhouse-compose.yml
service: clickhouse.base
links:
- etcd
- zetcd
environment:
CLICKHOUSE_SHARD: 1
CLICKHOUSE_REPLICA: clickhouse-ru-2.local
clickhouse-eu-1.local:
extends:
file: clickhouse-compose.yml
service: clickhouse.base
links:
- etcd
- zetcd
environment:
CLICKHOUSE_SHARD: 2
CLICKHOUSE_REPLICA: clickhouse-eu-1.local
clickhouse-eu-2.local:
extends:
file: clickhouse-compose.yml
service: clickhouse.base
links:
- etcd
- zetcd
environment:
CLICKHOUSE_SHARD: 2
CLICKHOUSE_REPLICA: clickhouse-eu-2.local
clickhouse-us-1.local:
extends:
file: clickhouse-compose.yml
service: clickhouse.base
links:
- etcd
- zetcd
environment:
CLICKHOUSE_SHARD: 3
CLICKHOUSE_REPLICA: clickhouse-us-1.local
clickhouse-us-2.local:
extends:
file: clickhouse-compose.yml
service: clickhouse.base
links:
- etcd
- zetcd
environment:
CLICKHOUSE_SHARD: 3
CLICKHOUSE_REPLICA: clickhouse-us-2.local
clickhouse-client.local:
image: yandex/clickhouse-client:latest
links:
- etcd
- zetcd
- clickhouse-ru-1.local
- clickhouse-ru-2.local
- clickhouse-eu-1.local
- clickhouse-eu-2.local
- clickhouse-us-1.local
- clickhouse-us-2.local