-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update docs for running natively vs in Docker (#113)
- Loading branch information
1 parent
39a136f
commit 33b2a9b
Showing
3 changed files
with
73 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# docker-compose.yml | ||
# see server/README.md for usage details | ||
services: | ||
kafka: | ||
restart: always | ||
image: bitnami/kafka | ||
ports: | ||
- "9093:9093" | ||
volumes: | ||
- "./server/kafka-data:/bitnami" | ||
environment: | ||
- KAFKA_ENABLE_KRAFT=yes | ||
- KAFKA_CFG_PROCESS_ROLES=broker,controller | ||
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER | ||
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9093,CONTROLLER://:2181 | ||
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT | ||
# note this difference from docker-compose.yml | ||
#- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9093 | ||
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9093 | ||
- KAFKA_BROKER_ID=1 | ||
- [email protected]:2181 | ||
- ALLOW_PLAINTEXT_LISTENER=yes | ||
- KAFKA_CFG_NODE_ID=1 | ||
- KAFKA_KRAFT_CLUSTER_ID=MkU3OEVBNTcwNTJENDM2Qk | ||
- KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=false | ||
redis: | ||
image: redis:alpine | ||
ports: | ||
- "6379:6379" | ||
healthcheck: | ||
test: [ "CMD", "redis-cli", "ping" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
KAFKA_BOOTSTRAP_SERVERS="kafka:9093" | ||
KAFKA_BOOTSTRAP_SERVERS="localhost:9093" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters