-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose-kafka.yml
59 lines (53 loc) · 1.26 KB
/
docker-compose-kafka.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
version: '2.1'
services:
zookeeper:
image: confluentinc/cp-zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
volumes:
- zookeeper:/var/lib/zookeeper
networks:
- reactnet
kafka:
image: confluentinc/cp-kafka
ports:
- 9092:9092
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092
KAFKA_NUM_PARTITIONS: 1
KAFKA_DEFAULT_REPLICATION_FACTOR: 1
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_DELETE_TOPIC_ENABLE: "true"
volumes:
- kafka:/var/lib/kafka
networks:
- reactnet
links:
- zookeeper
depends_on:
- zookeeper
ksql-server:
image: xmlking/ksql
ports:
- 9098:9098
networks:
- reactnet
links:
- kafka
depends_on:
- kafka
# volumes:
# - ./infra/kafka/ksql/:/etc/ksql/
environment:
KSQL_CONFIG_DIR: "/etc/ksql"
KSQL_LOG4J_OPTS: "-Dlog4j.configuration=file:/etc/ksql/log4j.properties"
STREAMS_BOOTSTRAP_SERVERS: kafka:9092
# STREAMS_BOOTSTRAP_SERVERS: 10.205.105.157:10040,10.205.105.152:9136,10.205.105.156:9129
entrypoint: 'ksql-server-start'
networks:
reactnet:
driver: bridge
volumes:
zookeeper:
kafka: