-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose-distributed.yml
96 lines (90 loc) · 2.63 KB
/
docker-compose-distributed.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
version: '3'
services:
zookeeper:
image: confluentinc/cp-zookeeper:7.4.0-2-ubi8
networks:
kafka_distributed_network:
environment:
ZOOKEEPER_CLIENT_PORT: 2181
zk_id: '1'
# ports:
# - '2181:2181'
kafka:
image: confluentinc/cp-server:7.4.0-2-ubi8
hostname: kafka
container_name: kafka
networks:
kafka_distributed_network:
aliases:
- kafka
ports:
- 29092:29092
depends_on:
- zookeeper
volumes:
- ./scripts/security/keypair:/tmp/conf
- ./scripts/helper:/tmp/helper
- ./scripts/security:/etc/kafka/secrets
environment:
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_LISTENERS: PLAINTEXT://:9092, EXTERNAL_LISTENER://:29092
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092, EXTERNAL_LISTENER://localhost:29092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT, EXTERNAL_LISTENER:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
schema-registry:
image: confluentinc/cp-schema-registry:7.4.0-2-ubi8
networks:
kafka_distributed_network:
aliases:
- schema-registry
# ports:
# - '8081:8081'
environment:
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: 'zookeeper:2181'
SCHEMA_REGISTRY_HOST_NAME: schema-registry
control-center:
image: confluentinc/cp-enterprise-control-center:7.4.0-2-ubi8
networks:
kafka_distributed_network:
aliases:
- control-center
ports:
- '19021:9021'
depends_on:
- zookeeper
- kafka
- schema-registry
environment:
CONTROL_CENTER_BOOTSTRAP_SERVERS: 'kafka:9092'
CONTROL_CENTER_ZOOKEEPER_CONNECT: 'zookeeper:2181'
CONTROL_CENTER_CONNECT_CLUSTER: 'connect:8083'
CONTROL_CENTER_REPLICATION_FACTOR: 1
CONTROL_CENTER_CONFLUENT_CONTROLCENTER_SCHEMA_REGISTRY_URL: 'http://schema-registry:8081'
CONTROL_CENTER_SCHEMA_REGISTRY_URL: 'http://schema-registry:8081'
connector:
build: .
command:
- /bin/connect-distributed
- /config/docker-compose-worker-distributed.properties
volumes:
- ./config:/config
ports:
- 5005:5005
environment:
PORT: 5005
SUSPEND: ${SUSPEND:-n}
CONNECT_REST_PORT: 8083
CONNECT_REST_ADVERTISED_HOST_NAME: connector
networks:
kafka_distributed_network:
aliases:
- connector
depends_on:
- zookeeper
- kafka
- schema-registry
networks:
kafka_distributed_network: