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 :
2
6
3
7
services :
4
8
zoo1 :
@@ -11,6 +15,13 @@ services:
11
15
ZOOKEEPER_CLIENT_PORT : 2181
12
16
ZOOKEEPER_SERVER_ID : 1
13
17
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
14
25
15
26
kafka1 :
16
27
image : confluentinc/cp-kafka:6.2.1
@@ -32,6 +43,10 @@ services:
32
43
KAFKA_JMX_HOSTNAME : ${DOCKER_HOST_IP:-127.0.0.1}
33
44
depends_on :
34
45
- zoo1
46
+ volumes :
47
+ - type : volume
48
+ source : full-stack_kafka1-data
49
+ target : /var/lib/kafka/data
35
50
36
51
kafka-schema-registry :
37
52
image : confluentinc/cp-schema-registry:6.2.1
You can’t perform that action at this time.
0 commit comments