-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
96 lines (91 loc) · 2.82 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
93
94
95
version: '2.3'
services:
zookeeper:
image: zookeeper:3.4.12
expose:
- "2181"
hostname: zookeeper
environment:
ZOO_TICK_TIME: 500
ZOO_MY_ID: 1
healthcheck:
test: echo stat | nc localhost 2181
interval: 3s
timeout: 2s
retries: 5
start_period: 2s
security_opt:
- label:disable
kafka:
image: confluentinc/cp-kafka:5.2.0
expose:
- "9092"
hostname: kafka
environment:
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
- KAFKA_BROKER_ID=1
- BOOTSTRAP_SERVERS=kafka:9092
- KAFKA_LISTENERS=PLAINTEXT://0.0.0.0:9092
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- ZOOKEEPER=zookeeper:2181
- KAFKA_LOG4J_LOGGERS=kafka.controller=INFO,kafka.producer.async.DefaultEventHandler=INFO,state.change.logger=INFO
healthcheck:
test: echo dump | nc zookeeper 2181 | grep '/brokers/ids/1'
interval: 3s
timeout: 2s
retries: 5
start_period: 2s
security_opt:
- label:disable
depends_on:
zookeeper:
condition: service_healthy
clickhouse:
# image: yandex/clickhouse-server:19.14.7.15
# image: yandex/clickhouse-server:19.15.3.6
# image: yandex/clickhouse-server:19.17.4.11
image: yandex/clickhouse-server:ci_build_pr7935
build:
context: ci_build/.
expose:
- "9000"
- "9009"
- "8123"
hostname: clickhouse
volumes:
- ./data-samples:/data-samples/
- ./configs/extra_config.xml:/etc/clickhouse-server/config.d/extra_config.xml
- ./logs/:/var/log/clickhouse-server/
- ./format_schemas/:/var/lib/clickhouse/format_schemas/:ro
# - ./configs/profiler.xml:/etc/clickhouse-server/users.d/profiler.xml
# - /home/mfilimonov/workspace/ClickHouse/build-vscode/clang_8_RelWithDebInfo/dbms/programs/clickhouse:/usr/bin/clickhouse
# - /home/mfilimonov/workspace/ClickHouse/build-vscode/clang_8_Debug/dbms/programs/clickhouse:/usr/bin/clickhouse
# - /home/mfilimonov/workspace/ClickHouse/dbms/:/dbms/:ro
# - /home/mfilimonov/workspace/ClickHouse/contrib/:/contrib/:ro
# - /home/mfilimonov/workspace/ClickHouse/libs/:/libs/:ro
healthcheck:
test: clickhouse client --query='select 1'
interval: 3s
timeout: 2s
retries: 5
start_period: 2s
cap_add:
- SYS_PTRACE
- SYS_ADMIN
privileged: true # the easiest option to make perf and other debug tools work in the container
security_opt:
- label:disable
depends_on:
zookeeper:
condition: service_healthy
kafka:
condition: service_healthy
kafkacat:
image: confluentinc/cp-kafkacat
entrypoint: tail -f /dev/null
depends_on:
kafka:
condition: service_healthy
volumes:
- ./data-samples:/data-samples/