forked from bookingcom/carbonapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-clickhouse.yaml
62 lines (56 loc) · 1.68 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
59
60
61
62
version: "3"
services:
clickhouse:
image: yandex/clickhouse-server:1.1.54380
volumes:
- "./config/clickhouse/rollup.xml:/etc/clickhouse-server/config.d/rollup.xml"
- "./data/clickhouse/data:/var/lib/clickhouse/data"
- "./data/clickhouse/metadata:/var/lib/clickhouse/metadata"
clickhouse-init:
image: yandex/clickhouse-server:1.1.54380
volumes:
- "./config/clickhouse/init.sql:/init.sql"
entrypoint: |
bash -c '
sleep 5
export HOME=/var/lib/clickhouse/
cat /init.sql | clickhouse client --host clickhouse --multiquery'
links:
- clickhouse
carbon-clickhouse:
image: lomik/carbon-clickhouse:v0.9.1
volumes:
- "./data/carbon-clickhouse:/data/carbon-clickhouse"
- "./config/clickhouse/carbon-clickhouse.conf:/etc/carbon-clickhouse/carbon-clickhouse.conf"
ports:
- "2003:2003" # plain tcp
- "2003:2003/udp" # plain udp
- "2004:2004" # pickle
- "2006:2006" # prometheus remote write
links:
- clickhouse
graphite-clickhouse:
image: lomik/graphite-clickhouse:v0.8.1
volumes:
- "./config/clickhouse/rollup.xml:/etc/graphite-clickhouse/rollup.xml"
- "./config/clickhouse/graphite-clickhouse.conf:/etc/graphite-clickhouse/graphite-clickhouse.conf"
links:
- clickhouse
ports:
- "9090:9090"
zipper:
build:
dockerfile: docker/zipper/Dockerfile
context: .
volumes:
- "./config/clickhouse/carbonzipper.yaml:/etc/carbonzipper.yaml"
links:
- graphite-clickhouse
carbonapi:
build:
dockerfile: docker/carbonapi/Dockerfile
context: .
ports:
- "8081:8081"
links:
- zipper