This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 293
/
docker-compose.yml
73 lines (69 loc) · 2.43 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3'
services:
nakadi:
build:
context: .
args:
BASE_IMAGE: "registry.opensource.zalan.do/library/openjdk-11-jre-slim:latest"
ports:
- "8080:8080"
depends_on:
- postgres
- zookeeper
- kafka
environment:
- SPRING_PROFILES_ACTIVE
- NAKADI_OAUTH2_MODE=OFF
- NAKADI_FEATURES_DEFAULT_FEATURES_DISABLE_EVENT_TYPE_CREATION
- NAKADI_FEATURES_DEFAULT_FEATURES_DISABLE_EVENT_TYPE_DELETION
- NAKADI_FEATURES_DEFAULT_FEATURES_DISABLE_SUBSCRIPTION_CREATION
- NAKADI_FEATURES_DEFAULT_FEATURES_REMOTE_TOKENINFO
- NAKADI_FEATURES_DEFAULT_FEATURES_KPI_COLLECTION
- NAKADI_FEATURES_DEFAULT_FEATURES_DISABLE_DB_WRITE_OPERATIONS
- NAKADI_ZOOKEEPER_CONNECTIONSTRING=zookeeper://zookeeper:2181
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/local_nakadi_db?preferQueryMode=simple
- SPRING_DATASOURCE_USERNAME=nakadi
- SPRING_DATASOURCE_PASSWORD=nakadi
- NAKADI_KAFKA_PREFERRED_LISTENER_PORT=9093
- NAKADI_KAFKA_SECURITY_PROTOCOL=SASL_PLAINTEXT
- NAKADI_KAFKA_SASL_MECHANISM=PLAIN
- NAKADI_KAFKA_USERNAME=nakadi
- NAKADI_KAFKA_PASSWORD=nakadi_password
postgres:
image: postgres:14
ports:
- "5432:5432"
volumes:
- "./database/nakadi:/docker-entrypoint-initdb.d"
environment:
POSTGRES_USER: nakadi
POSTGRES_PASSWORD: nakadi
POSTGRES_DB: local_nakadi_db
zookeeper:
image: zookeeper:3.6
ports:
- "2181:2181"
kafka:
image: bitnami/kafka:3.6
ports:
- "29092:29092"
- "9092:9092"
- "9093:9093"
depends_on:
- zookeeper
environment:
# to debug when the container doesn't start due to invalid config:
BITNAMI_DEBUG: 'yes'
ALLOW_PLAINTEXT_LISTENER: 'yes'
KAFKA_ENABLE_KRAFT: 'no'
KAFKA_BROKER_ID: 0
KAFKA_CFG_ADVERTISED_LISTENERS: INTERNAL://kafka:9092,EXTERNAL://localhost:29092,CLIENT://kafka:9093
KAFKA_CFG_LISTENERS: INTERNAL://kafka:9092,EXTERNAL://0.0.0.0:29092,CLIENT://:9093
KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT,CLIENT:SASL_PLAINTEXT
KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: 'false'
KAFKA_CFG_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
KAFKA_CLIENT_USERS: nakadi, producer
KAFKA_CLIENT_PASSWORDS: nakadi_password, producer_password
KAFKA_CFG_SASL_ENABLED_MECHANISMS: PLAIN
KAFKA_CFG_INTER_BROKER_LISTENER_NAME: INTERNAL