1
+ ---
2
+ version : ' 3'
3
+ services :
4
+ zookeeper :
5
+ image : confluentinc/cp-zookeeper:latest
6
+ hostname : zookeeper
7
+ container_name : zookeeper
8
+ ports :
9
+ - " 2181:2181"
10
+ environment :
11
+ ZOOKEEPER_CLIENT_PORT : 2181
12
+ ZOOKEEPER_TICK_TIME : 2000
13
+
14
+ broker :
15
+ image : confluentinc/cp-server:latest
16
+ hostname : broker
17
+ container_name : broker
18
+ depends_on :
19
+ - zookeeper
20
+ ports :
21
+ - " 9092:9092"
22
+ - " 9101:9101"
23
+ healthcheck :
24
+ test : nc -z localhost 9092 || exit -1
25
+ start_period : 15s
26
+ interval : 5s
27
+ timeout : 10s
28
+ retries : 100
29
+ environment :
30
+ KAFKA_BROKER_ID : 1
31
+ KAFKA_ZOOKEEPER_CONNECT : ' zookeeper:2181'
32
+ KAFKA_LISTENER_SECURITY_PROTOCOL_MAP : PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
33
+ KAFKA_ADVERTISED_LISTENERS : PLAINTEXT://broker:29092,PLAINTEXT_HOST://localhost:9092
34
+ KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR : 1
35
+ KAFKA_AUTO_CREATE_TOPICS_ENABLE : " true"
36
+ KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS : 0
37
+ KAFKA_CONFLUENT_LICENSE_TOPIC_REPLICATION_FACTOR : 1
38
+ KAFKA_CONFLUENT_REPORTERS_TELEMETRY_AUTO_ENABLE : ' false'
39
+ KAFKA_CONFLUENT_BALANCER_ENABLE : ' false'
40
+ KAFKA_CONFLUENT_SCHEMA_REGISTRY_URL : http://schema-registry:8081
41
+ KAFKA_TRANSACTION_STATE_LOG_MIN_ISR : 1
42
+ KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR : 1
43
+ KAFKA_JMX_PORT : 9101
44
+ CONFLUENT_SUPPORT_CUSTOMER_ID : ' anonymous'
45
+
46
+ # schema-registry:
47
+ # image: confluentinc/cp-schema-registry:latest
48
+ # hostname: schema-registry
49
+ # container_name: schema-registry
50
+ # depends_on:
51
+ # - broker
52
+ # ports:
53
+ # - "8081:8081"
54
+ # environment:
55
+ # SCHEMA_REGISTRY_HOST_NAME: schema-registry
56
+ # SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: 'broker:29092'
57
+
58
+ # connect:
59
+ # image: cnfldemos/cp-server-connect-datagen:0.5.3-7.1.0
60
+ # hostname: connect
61
+ # container_name: connect
62
+ # user: root
63
+ # depends_on:
64
+ # - broker
65
+ # - schema-registry
66
+ # ports:
67
+ # - "8083:8083"
68
+ # - "9997:9997"
69
+ # - "5140:5140/udp"
70
+ # healthcheck:
71
+ # interval: 10s
72
+ # retries: 20
73
+ # test: curl -f http://localhost:8083 || exit 1
74
+ # environment:
75
+ # CONNECT_BOOTSTRAP_SERVERS: 'broker:29092'
76
+ # CONNECT_REST_ADVERTISED_HOST_NAME: connect
77
+ # CONNECT_REST_PORT: 8083
78
+ # CONNECT_GROUP_ID: compose-connect-group
79
+ # CONNECT_CONFIG_STORAGE_TOPIC: _docker-connect-configs
80
+ # CONNECT_OFFSET_STORAGE_TOPIC: _docker-connect-offsets
81
+ # CONNECT_STATUS_STORAGE_TOPIC: _docker-connect-status
82
+ # CONNECT_CONFIG_STORAGE_REPLICATION_FACTOR: 1
83
+ # CONNECT_OFFSET_STORAGE_REPLICATION_FACTOR: 1
84
+ # CONNECT_STATUS_STORAGE_REPLICATION_FACTOR: 1
85
+ # CONNECT_OFFSET_FLUSH_INTERVAL_MS: 10000
86
+ # CONNECT_KEY_CONVERTER: org.apache.kafka.connect.storage.StringConverter
87
+ # CONNECT_VALUE_CONVERTER: io.confluent.connect.avro.AvroConverter
88
+ # CONNECT_VALUE_CONVERTER_SCHEMA_REGISTRY_URL: http://schema-registry:8081
89
+ # CONNECT_INTERNAL_KEY_CONVERTER: "org.apache.kafka.connect.json.JsonConverter"
90
+ # CONNECT_INTERNAL_VALUE_CONVERTER: "org.apache.kafka.connect.json.JsonConverter"
91
+ # CONNECT_PLUGIN_PATH: "/usr/share/java,/usr/share/confluent-hub-components"
92
+ # CONNECT_LOG4J_LOGGERS: org.apache.zookeeper=ERROR,org.I0Itec.zkclient=ERROR,org.reflections=ERROR
93
+
94
+ control-center :
95
+ image : confluentinc/cp-enterprise-control-center:latest
96
+ hostname : control-center
97
+ container_name : control-center
98
+ user : root
99
+ depends_on :
100
+ - broker
101
+ # - schema-registry
102
+ # - connect
103
+ # - ksqldb-server
104
+ ports :
105
+ - " 9021:9021"
106
+ environment :
107
+ CONTROL_CENTER_BOOTSTRAP_SERVERS : ' broker:29092'
108
+ CONTROL_CENTER_CONNECT_CONNECT-DEFAULT_CLUSTER : ' connect:8083'
109
+ # The control center server connects to ksqlDB through the docker network
110
+ CONTROL_CENTER_KSQL_KSQLDB1_URL : " http://ksqldb-server:8088"
111
+ CONTROL_CENTER_KSQL_KSQLDB1_ADVERTISED_URL : https://localhost:8088
112
+ CONTROL_CENTER_SCHEMA_REGISTRY_URL : " http://schema-registry:8081"
113
+ CONTROL_CENTER_REPLICATION_FACTOR : 1
114
+ CONTROL_CENTER_INTERNAL_TOPICS_PARTITIONS : 1
115
+ CONTROL_CENTER_MODE_ENABLE : " management"
116
+
117
+ # ksqldb-server:
118
+ # image: confluentinc/cp-ksqldb-server:latest
119
+ # hostname: ksqldb-server
120
+ # container_name: ksqldb-server
121
+ # depends_on:
122
+ # - broker
123
+ # - connect
124
+ # ports:
125
+ # - "8088:8088"
126
+ # volumes:
127
+ # - ./ksqlDB/ksql-extension:/etc/ksql-extension/
128
+ # environment:
129
+ # KSQL_CONFIG_DIR: "/etc/ksql"
130
+ # KSQL_KSQL_EXTENSION_DIR: "/etc/ksql-extension"
131
+ # KSQL_BOOTSTRAP_SERVERS: "broker:29092"
132
+ # KSQL_HOST_NAME: ksqldb-server
133
+ # KSQL_LISTENERS: "http://0.0.0.0:8088"
134
+ # KSQL_CACHE_MAX_BYTES_BUFFERING: 0
135
+ # KSQL_KSQL_SCHEMA_REGISTRY_URL: "http://schema-registry:8081"
136
+ # KSQL_KSQL_CONNECT_URL: "http://connect:8083"
137
+ # KSQL_KSQL_HIDDEN_TOPICS: '^_.*'
138
+ # KSQL_KSQL_LOGGING_PROCESSING_STREAM_AUTO_CREATE: "true"
139
+ # KSQL_KSQL_LOGGING_PROCESSING_TOPIC_AUTO_CREATE: "true"
140
+
141
+ # confluent-sigma-streams:
142
+ # image: confluentinc/confluent-sigma:1.3.2
143
+ # container_name: confluent-sigma-streams
144
+ # depends_on:
145
+ # broker:
146
+ # condition: service_healthy
147
+ # hostname: confluent-sigma-streams
148
+ # environment:
149
+ # application_id: 'dns-streams-app'
150
+ # bootstrap_server: 'broker:29092'
151
+ # schema_registry: 'http://schema-registry:8081'
152
+ # data_topic: 'dns'
153
+ # output_topic: 'dns-detection'
154
+ # sigma_rules_topic: 'sigma-rules'
155
+ # sigma_rule_filter_product: 'zeek'
156
+ # sigma_rule_filter_service: 'dns'
157
+ # sigma_rule_first_match: 'false'
158
+
159
+ # confluent-sigma-ui:
160
+ # image: confluentinc/confluent-sigma-ui:1.3.2
161
+ # container_name: confluent-sigma-ui
162
+ # depends_on:
163
+ # broker:
164
+ # condition: service_healthy
165
+ # hostname: confluent-sigma-ui
166
+ # ports:
167
+ # - 8080:8080
168
+ # environment:
169
+ # bootstrap_server: 'broker:29092'
170
+ # schema_registry: 'http://schema-registry:8081'
171
+ # sigma_rules_topic: 'sigma-rules'
172
+ # confluent_regex_applicationID: 'regex-application'
173
+ # confluent_regex_inputTopic: 'splunk-s2s-events'
174
+ # confluent_regex_ruleTopic: 'regex-rules'
175
+ # confluent_regex_filterField: 'sourcetype'
176
+ # confluent_regex_regexField: 'event'
177
+
178
+ # dns-load-data:
179
+ # image: edenhill/kcat:1.7.1
180
+ # container_name: dns-load-data
181
+ # hostname: dns-load-data
182
+ # depends_on:
183
+ # broker:
184
+ # condition: service_healthy
185
+ # volumes:
186
+ # - ./demo/data:/tmp/data
187
+ # command:
188
+ # - -b
189
+ # - broker:29092
190
+ # - -t
191
+ # - dns
192
+ # - -P
193
+ # - -l
194
+ # - /tmp/data/dns.txt
0 commit comments