-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (61 loc) · 1.67 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
version: '2'
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
ports:
- 32181:32181
environment:
ZOOKEEPER_CLIENT_PORT: 32181
ZOOKEEPER_TICK_TIME: 2000
extra_hosts:
- "moby:127.0.0.1"
- "localhost: 127.0.0.1"
kafka:
image: confluentinc/cp-kafka:latest
hostname: kafka-host
ports:
- 29092:29092
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:32181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://docker.for.mac.host.internal:29092
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
extra_hosts:
- "moby:127.0.0.1"
- "localhost: 127.0.0.1"
schema-registry:
image: confluentinc/cp-schema-registry:latest
hostname: sr-host
ports:
- 29081:29081
depends_on:
- zookeeper
- kafka
environment:
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: zookeeper:32181
SCHEMA_REGISTRY_HOST_NAME: sr-host
SCHEMA_REGISTRY_LISTENERS: http://sr-host:29081
extra_hosts:
- "moby:127.0.0.1"
- "localhost: 127.0.0.1"
kafka-rest:
image: confluentinc/cp-kafka-rest:latest
hostname: kr-host
ports:
- 29080:29080
depends_on:
- zookeeper
- kafka
- schema-registry
environment:
KAFKA_REST_ZOOKEEPER_CONNECT: zookeeper:32181
KAFKA_REST_LISTENERS: http://kr-host:29080
KAFKA_REST_SCHEMA_REGISTRY_URL: http://sr-host:29081
KAFKA_REST_HOST_NAME: kr-host
KAFKA_REST_BOOTSTRAP_SERVERS: docker.for.mac.host.internal:29092
extra_hosts:
- "moby:127.0.0.1"
- "localhost: 127.0.0.1"