-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (67 loc) · 1.75 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
version: '3'
services:
iris-integration:
build:
context: .
command: npm start test.integration
depends_on:
- kafka
- zookeeper
- schema-registry
volumes:
- ./:/home/app
- /home/app/node_modules
kafka:
image: quay.io/parkhubprime/pk-confluent-kafka:3.3.0
hostname: kafka
depends_on:
- zookeeper
ports:
- 9092:9092
- 9999:9999
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_BROKER_ID: 1
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_JMX_PORT: 9999
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
zookeeper:
image: quay.io/parkhubprime/pk-confluent-zookeeper:3.3.0
hostname: zookeeper
ports:
- 2181:2181
- 2888:2888
- 3888:3888
environment:
ZOOKEEPER_REPLICAS: 1
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_SERVER_PORT: 2888
ZOOKEEPER_ELECTION_PORT: 3888
ZOOKEEPER_SERVER_ID: 1
schema-registry:
image: confluentinc/cp-schema-registry
hostname: schema-registry
depends_on:
- zookeeper
- kafka
ports:
- "8081:8081"
environment:
SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:8081
SCHEMA_REGISTRY_HOST_NAME: schema-registry
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: 'zookeeper:2181'
rest-proxy:
image: confluentinc/cp-kafka-rest:3.3.0
hostname: rest-proxy
depends_on:
- schema-registry
- zookeeper
- kafka
ports:
- "8082:8082"
environment:
KAFKA_REST_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_REST_LISTENERS: http://0.0.0.0:8082
KAFKA_REST_SCHEMA_REGISTRY_URL: http://schema-registry:8081
KAFKA_REST_HOST_NAME: rest-proxy
KAFKA_REST_BOOTSTRAP_SERVERS: kafka:9092