Skip to content

Commit 8aae8bc

Browse files
committed
chore: change kafka zookeeper ports
1 parent 599450e commit 8aae8bc

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,9 @@ sudo lsof -nP -iTCP:2181 | grep LISTEN
7777
ps aux | grep kafka
7878
ps aux | grep zookeeper
7979
```
80+
81+
### Check background services
82+
83+
```bash
84+
brew services list
85+
```

standalone-apis/node-kafka-producer-consumer/docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ services:
33
zookeeper:
44
image: 'bitnami/zookeeper:latest'
55
ports:
6-
- '2182:2182'
6+
- '2181:2181'
77
environment:
88
- ALLOW_ANONYMOUS_LOGIN=yes
99
kafka:
1010
image: 'bitnami/kafka:latest'
1111
container_name: 'kafka'
1212
ports:
13-
- '9093:9093'
13+
- '9092:9092'
1414
environment:
1515
- KAFKA_BROKER_ID=1
16-
- KAFKA_LISTENERS=PLAINTEXT://:9093
17-
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9093
18-
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2182
16+
- KAFKA_LISTENERS=PLAINTEXT://:9092
17+
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092
18+
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
1919
- ALLOW_PLAINTEXT_LISTENER=yes
2020
depends_on:
2121
- zookeeper

0 commit comments

Comments
 (0)