Skip to content

Commit

Permalink
fix: kafka
Browse files Browse the repository at this point in the history
  • Loading branch information
tvrcgo committed Mar 20, 2023
1 parent ef64f05 commit 17c7c5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
9 changes: 7 additions & 2 deletions docker-compose-m1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,14 @@ services:

kafka:
extends:
file: docker-compose.yml
file: kafka/docker-compose.yml
service: kafka
platform: linux/amd64
platform: linux/arm64
container_name: kafka-dev
depends_on:
- zookeeper
environment:
- KAFKA_ZOOKEEPER_CONNECT=zookeeper-dev:2181

es:
extends:
Expand Down
8 changes: 0 additions & 8 deletions kafka/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ services:
build: .
container_name: kafka
mem_limit: 1024M
depends_on:
- zookeeper
environment:
KAFKA_BROKER_NO: 1
KAFKA_ADVERTISED_HOST_NAME: 127.0.0.1
Expand All @@ -17,9 +15,3 @@ services:
KAFKA_HEAP_OPTS: "-Xmx512M -Xms16M"
ports:
- 9092:9092

zookeeper:
extends:
file: ../zookeeper/docker-compose.yml
service: zookeeper
container_name: zookeeper

0 comments on commit 17c7c5e

Please sign in to comment.