-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
102 lines (96 loc) · 2.84 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
96
97
98
99
100
101
102
---
version: '3'
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
hostname: zookeeper
ports:
- '3500:3500'
environment:
ZOOKEEPER_CLIENT_PORT: 3500
ZOOKEEPER_TICK_TIME: 2000
broker:
image: confluentinc/cp-kafka:latest
hostname: broker
links:
- zookeeper
ports:
- '3501:3501'
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:3500'
KAFKA_ADVERTISED_LISTENERS: 'EXTERNAL://localhost:3501,PLAINTEXT://broker:9092'
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: 'EXTERNAL:PLAINTEXT,PLAINTEXT:PLAINTEXT'
KAFKA_LISTENERS: 'EXTERNAL://0.0.0.0:3501,PLAINTEXT://0.0.0.0:9092'
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_DEFAULT_REPLICATION_FACTOR: 1
KAFKA_MESSAGE_MAX_BYTES: 100000000
KAFKA_REPLICA_FETCH_MAX_BYTES: 100000000
restart: on-failure
schema_registry:
image: confluentinc/cp-schema-registry:latest
hostname: schema_registry
links:
- zookeeper
- broker
ports:
- '3502:3502'
environment:
SCHEMA_REGISTRY_HOST_NAME: schema_registry
SCHEMA_REGISTRY_LISTENERS: 'http://0.0.0.0:3502'
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: 'zookeeper:3500'
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: 'PLAINTEXT://broker:9092'
restart: on-failure
kafka_rest:
image: confluentinc/cp-kafka-rest:latest
hostname: kafka_rest
links:
- zookeeper
- schema_registry
- broker
ports:
- '8082:8082'
environment:
KAFKA_REST_HOST_NAME: kafka_rest
KAFKA_REST_BOOTSTRAP_SERVERS: 'PLAINTEXT://broker:9092'
KAFKA_REST_ZOOKEEPER_CONNECT: 'zookeeper:3500'
KAFKA_REST_LISTENERS: 'http://0.0.0.0:8082'
KAFKA_REST_SCHEMA_REGISTRY_URL: 'http://schema_registry:3502'
KAFKA_CONSUMER_REQUEST_TIMEOUT_MS: 30000
KAFKA_REST_ACCESS_CONTROL_ALLOW_METHODS: 'GET,POST,PUT,DELETE,OPTIONS'
KAFKA_REST_ACCESS_CONTROL_ALLOW_ORIGIN: '*'
restart: on-failure
bootstrapper:
image: drivereu/silent-producer:latest
hostname: bootstrapper
depends_on:
- broker
- schema_registry
environment:
KAFKA_HOST: broker:9092
SCHEMA_REGISTRY: http://schema_registry:3502
restart: on-failure
volumes:
- ./data/schemas:/app/src/schemas
kafka_topics_ui:
image: landoop/kafka-topics-ui:latest
hostname: kafka_topics_ui
links:
- kafka_rest
ports:
- '3600:8000'
environment:
KAFKA_REST_PROXY_URL: 'http://kafka_rest:8082'
PROXY: 'true'
MAX_BYTES: 10485760
kafka_schema_registry_ui:
image: landoop/schema-registry-ui:latest
hostname: kafka_schema_registry_ui
links:
- schema_registry
ports:
- '3601:8000'
environment:
SCHEMAREGISTRY_URL: 'http://schema_registry:3502'
PROXY: 'true'
MAX_BYTES: 10485760