This repository was archived by the owner on Jun 26, 2025. It is now read-only.
forked from CS3219-AY2324S1/ay2324s1-course-assessment-g33
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
42 lines (39 loc) · 1.28 KB
/
docker-compose-dev.yml
File metadata and controls
42 lines (39 loc) · 1.28 KB
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
version: "3"
x-logging: &default-logging
logging:
driver: json-file
options:
max-size: 100m
services:
peercode_kafka:
image: confluentinc/cp-kafka:7.0.0
container_name: peercode_kafka
ports:
- "9092:9092"
- "19092:19092"
restart: always
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: "peercode_zookeeper:2181"
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_INTERNAL:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://peercode_kafka:9092,PLAINTEXT_INTERNAL://broker:29092,PLAINTEXT_HOST://localhost:19092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
depends_on:
- peercode_zookeeper
networks:
- network
peercode_zookeeper:
image: confluentinc/cp-zookeeper:7.0.0
container_name: peercode_zookeeper
ports:
- "2181:2181"
restart: always
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
networks:
- network
networks:
network: