Skip to content

Commit

Permalink
add kafka docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
olliebatch committed Dec 22, 2023
1 parent 4c447be commit 9462d7a
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion rust-containers-k8s/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3.8"

services:
postgres:
image: postgres:16.1
image: postgres:15.5
restart: always
volumes:
- .//database/docker-postgresql-multiple-databases:/docker-entrypoint-initdb.d
Expand All @@ -12,3 +12,32 @@ services:
POSTGRES_PASSWORD: commerce
ports:
- 5432:5432
zookeeper:
restart: always
image: docker.io/bitnami/zookeeper:3.8
ports:
- "2181:2181"
volumes:
- "zookeeper-volume:/bitnami"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka:
restart: always
image: docker.io/bitnami/kafka:3.3
ports:
- "9093:9093"
volumes:
- "kafka-volume:/bitnami"
environment:
- KAFKA_BROKER_ID=1
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CLIENT:PLAINTEXT,EXTERNAL:PLAINTEXT
- KAFKA_CFG_LISTENERS=CLIENT://:9092,EXTERNAL://:9093
- KAFKA_CFG_ADVERTISED_LISTENERS=CLIENT://kafka:9092,EXTERNAL://localhost:9093
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=CLIENT
depends_on:
- zookeeper
volumes:
kafka-volume:
zookeeper-volume:

0 comments on commit 9462d7a

Please sign in to comment.