forked from Nordstrom/kafka-connect-lambda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (72 loc) · 2.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: "3"
services:
zookeeper:
image: confluentinc/cp-zookeeper:5.3.1
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ports:
- 2181:2181
logging: { driver: none }
broker:
image: confluentinc/cp-kafka:5.3.1
ports:
- 9092:9092
environment:
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_LISTENERS=PUBLIC://0.0.0.0:9092,INTERNAL://0.0.0.0:19092
- KAFKA_ADVERTISED_LISTENERS=PUBLIC://localhost:9092,INTERNAL://broker:19092
- KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=PUBLIC:PLAINTEXT,INTERNAL:PLAINTEXT
- KAFKA_INTER_BROKER_LISTENER_NAME=INTERNAL
- KAFKA_NUM_PARTITIONS=2
- KAFKA_DEFAULT_REPLICATION_FACTOR=1
- KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS=10
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
- KAFKA_DELETE_TOPIC_ENABLE=true
- KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE=false
- KAFKA_LOG4J_ROOT_LOGLEVEL=INFO
depends_on: [zookeeper]
logging: { driver: none }
schema-registry:
image: confluentinc/cp-schema-registry:5.3.1
hostname: schema-registry
ports:
- 8080:8080
environment:
- SCHEMA_REGISTRY_HOST_NAME=schema-registry
- SCHEMA_REGISTRY_LISTENERS=http://0.0.0.0:8080
- SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS=PLAINTEXT://broker:19092
- SCHEMA_REGISTRY_KAFKASTORE_TOPIC=_schemas
- SCHEMA_REGISTRY_KAFKASTORE_TOPIC_REPLICATION_FACTOR=1
- SCHEMA_REGISTRY_KAFKASTORE_TIMEOUT_MS=15000
depends_on: [broker]
logging: { driver: none }
# NB: run connect locally in stand-alone mode to debug
connect:
image: confluentinc/cp-kafka-connect:5.3.1
ports:
- 8083:8083
environment:
- CONNECT_BOOTSTRAP_SERVERS=broker:19092
- CONNECT_REST_ADVERTISED_HOST_NAME=connect
- CONNECT_GROUP_ID=connect
- CONNECT_CONFIG_STORAGE_TOPIC=_connect_configs
- CONNECT_CONFIG_STORAGE_REPLICATION_FACTOR=1
- CONNECT_OFFSET_STORAGE_TOPIC=_connect_offsets
- CONNECT_OFFSET_STORAGE_REPLICATION_FACTOR=1
- CONNECT_STATUS_STORAGE_TOPIC=_connect_status
- CONNECT_STATUS_STORAGE_REPLICATION_FACTOR=1
- CONNECT_KEY_CONVERTER=org.apache.kafka.connect.json.JsonConverter
- CONNECT_VALUE_CONVERTER=org.apache.kafka.connect.json.JsonConverter
- CONNECT_INTERNAL_KEY_CONVERTER=org.apache.kafka.connect.json.JsonConverter
- CONNECT_INTERNAL_VALUE_CONVERTER=org.apache.kafka.connect.json.JsonConverter
- CONNECT_PLUGIN_PATH=/opt/connectors
- KAFKA_LOG4J_OPTS=-Dlog4j.configuration=file:/etc/log4j.properties
- AWS_PROFILE
- AWS_REGION
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
volumes:
- ~/.aws:/root/.aws
- ./target/plugin:/opt/connectors
- ./config/log4j.properties:/etc/log4j.properties
depends_on: [broker]