File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,6 +33,20 @@ services:
3333 reservations :
3434 memory : 1G
3535
36+ redis :
37+ image : redis:7.4.1-bookworm
38+ ports :
39+ - " 6379:6379"
40+ volumes :
41+ - redis_data:/data
42+ deploy :
43+ resources :
44+ limits :
45+ cpus : ' 0.5'
46+ memory : 512M
47+ reservations :
48+ memory : 256M
49+
3650 elasticsearch :
3751 image : elasticsearch:8.15.3
3852 environment :
@@ -51,19 +65,44 @@ services:
5165 reservations :
5266 memory : 1G
5367
54- redis :
55- image : redis :7.4.1-bookworm
68+ zookeeper :
69+ image : confluentinc/cp-zookeeper :7.7.1
5670 ports :
57- - " 6379:6379"
58- volumes :
59- - redis_data:/data
71+ - " 2181:2181"
72+ environment :
73+ ZOOKEEPER_CLIENT_PORT : 2181
74+ ZOOKEEPER_TICK_TIME : 2000
6075 deploy :
6176 resources :
6277 limits :
63- cpus : ' 0.5'
78+ cpus : ' 1'
79+ memory : 1G
80+ reservations :
6481 memory : 512M
82+
83+ kafka :
84+ image : confluentinc/cp-kafka:7.7.1
85+ depends_on :
86+ - zookeeper
87+ ports :
88+ - " 29092:29092"
89+ - " 9092:9092"
90+ environment :
91+ KAFKA_BROKER_ID : 1
92+ KAFKA_ZOOKEEPER_CONNECT : ' zookeeper:2181'
93+ KAFKA_LISTENER_SECURITY_PROTOCOL_MAP : PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
94+ KAFKA_ADVERTISED_LISTENERS : PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092
95+ KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR : 1
96+ KAFKA_TRANSACTION_STATE_LOG_MIN_ISR : 1
97+ KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR : 1
98+ KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS : 0
99+ deploy :
100+ resources :
101+ limits :
102+ cpus : ' 2'
103+ memory : 2G
65104 reservations :
66- memory : 256M
105+ memory : 1G
67106
68107volumes :
69108 mongodb_data :
You can’t perform that action at this time.
0 commit comments