-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
39 lines (35 loc) · 1011 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
version: '2'
services:
kafka:
image: docker.io/bitnami/kafka:3.4.1-debian-11-r55
networks:
- my-net
ports:
- "9092:9092"
environment:
- KAFKA_ENABLE_KRAFT=yes
- KAFKA_CFG_PROCESS_ROLES=broker,controller
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
- KAFKA_BROKER_ID=0
- KAFKA_CFG_NODE_ID=0
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://localhost:9092
- [email protected]:9093
- KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true
- ALLOW_PLAINTEXT_LISTENER=yes
- BITNAMI_DEBUG=true
postgres:
image: "postgres:12.11"
ports:
- "1337:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRESQL_FSYNC: "off"
POSTGRESQL_FULL_PAGE_WRITES: "off"
volumes:
- ${PWD}/local-db-init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
my-net:
driver: bridge