Skip to content

Commit ff5d81e

Browse files
authored
Add missing volumes to the full-stack definition (#99)
1 parent e9604ba commit ff5d81e

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

full-stack.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
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

37
services:
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

0 commit comments

Comments
 (0)