-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (39 loc) · 940 Bytes
/
docker-compose.yml
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
42
43
44
version: '3.8'
services:
consumer-app:
build:
context: .
dockerfile: Dockerfile.consumer
depends_on:
- kafka
server:
build:
context: .
dockerfile: Dockerfile.server
ports:
- "3000:3000"
depends_on:
- kafka
mongo:
image: mongo:latest
ports:
- "27017:27017"
zookeeper:
image: zookeeper
ports:
- "2181:2181"
kafka:
image: confluentinc/cp-kafka:latest
ports:
- "9092:9092"
environment:
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
- KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=PLAINTEXT:PLAINTEXT
- KAFKA_LISTENERS=PLAINTEXT://0.0.0.0:9092
- KAFKA_LISTENER_NAME=PLAINTEXT
- KAFKA_LOG_DIRS=/var/lib/kafka/logs
- KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE=false
- KAFKA_OFFSET_TOPIC_REPLICATION_FACTOR=1
depends_on:
- zookeeper