-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (70 loc) · 1.7 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
version: '3'
networks:
internal:
driver: bridge
ipam:
config:
- subnet: "172.16.100.0/24"
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
networks:
internal:
ipv4_address: 172.16.100.10
kafka:
image: confluentinc/cp-kafka:latest
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 172.16.100.10:2181
KAFKA_LISTENERS: LISTENER://172.16.100.11:9092
KAFKA_ADVERTISED_LISTENERS: LISTENER://172.16.100.11:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: LISTENER:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: LISTENER
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
ports:
- 9092:9092
networks:
internal:
ipv4_address: 172.16.100.11
clickhouse:
image: yandex/clickhouse-server
volumes:
- ./clickhouse/config.xml:/etc/clickhouse-server/config.xml
- ./clickhouse/init-db.sh:/docker-entrypoint-initdb.d/init-db.sh
depends_on:
- kafka
ports:
- 8123:8123
networks:
internal:
ipv4_address: 172.16.100.12
generator:
build:
dockerfile: Dockerfile-generator
context: .
environment:
KAFKA_HOST: 172.16.100.11:9092
depends_on:
- kafka
restart: unless-stopped
networks:
internal:
ipv4_address: 172.16.100.13
monitor:
build:
dockerfile: Dockerfile-monitor
context: .
environment:
KAFKA_HOST: 172.16.100.11:9092
depends_on:
- kafka
- generator
restart: unless-stopped
networks:
internal:
ipv4_address: 172.16.100.14