-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathkafka.yml
More file actions
41 lines (37 loc) · 855 Bytes
/
kafka.yml
File metadata and controls
41 lines (37 loc) · 855 Bytes
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
version: '3.5'
services:
zookeeper:
image: local/zookeeper
build:
context: ./backend/zookeeper
hostname: zookeeper
container_name: zookeeper
networks:
- dev-net
env_file:
- ./backend/zookeeper/.env
kafka:
image: local/kafka
container_name: kafka-dev
build:
context: ./backend/kafka
hostname: kafka
networks:
- dev-net
ports:
# To learn about configuring Kafka for access across networks see
# https://www.confluent.io/blog/kafka-client-cannot-connect-to-broker-on-aws-on-docker-etc/
- "9092:9092"
depends_on:
- zookeeper
volumes:
- kafka-data:/var/lib/kafka/data
env_file:
- ./backend/kafka/.env
volumes:
kafka-data:
driver: local
driver_opts:
type: none
device: /volume/kafka/data
o: bind