File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 1- version : ' 2.1'
1+ version : ' 3.8'
2+ volumes :
3+ full-stack_kafka1-data :
4+ full-stack_zoo1-data :
5+ full-stack_zoo1-log :
26
37services :
48 zoo1 :
@@ -11,6 +15,13 @@ services:
1115 ZOOKEEPER_CLIENT_PORT : 2181
1216 ZOOKEEPER_SERVER_ID : 1
1317 ZOOKEEPER_SERVERS : zoo1:2888:3888
18+ volumes :
19+ - type : volume
20+ source : full-stack_zoo1-data
21+ target : /data
22+ - type : volume
23+ source : full-stack_zoo1-log
24+ target : /datalog
1425
1526 kafka1 :
1627 image : confluentinc/cp-kafka:6.2.1
@@ -32,6 +43,10 @@ services:
3243 KAFKA_JMX_HOSTNAME : ${DOCKER_HOST_IP:-127.0.0.1}
3344 depends_on :
3445 - zoo1
46+ volumes :
47+ - type : volume
48+ source : full-stack_kafka1-data
49+ target : /var/lib/kafka/data
3550
3651 kafka-schema-registry :
3752 image : confluentinc/cp-schema-registry:6.2.1
You can’t perform that action at this time.
0 commit comments