-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
129 lines (123 loc) · 4.53 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
services:
conduktor-ctl:
image: conduktor/conduktor-ctl:0.3.0
container_name: conduktor-ctl
entrypoint: sleep infinity # override entry point to keep container up
volumes:
- ./:/self-service
environment:
CDK_BASE_URL: "http://conduktor-console:8080"
CDK_API_KEY: "" # generate me from the UI for the demo, CLI also available
postgresql:
image: postgres:14
hostname: postgresql
volumes:
- pg_data_ss:/var/lib/postgresql/data
environment:
PGDATA: "/var/lib/postgresql/data"
POSTGRES_DB: "conduktor-console"
POSTGRES_USER: "conduktor"
POSTGRES_PASSWORD: "change_me"
POSTGRES_HOST_AUTH_METHOD: "scram-sha-256"
conduktor-console:
container_name: conduktor-console
image: conduktor/conduktor-console:1.27.0
depends_on:
- postgresql
- redpanda-0
ports:
- "8080:8080"
volumes:
- conduktor_data_ss:/var/conduktor
environment:
CDK_DATABASE_URL: "postgres://conduktor:change_me@postgresql:5432/conduktor-console"
CDK_ADMIN_EMAIL: "[email protected]"
CDK_ADMIN_PASSWORD: "admin-secret"
CDK_ORGANIZATION_NAME: "stu-conduktor-general"
CDK_AUTH_LOCAL-USERS_0_EMAIL: "[email protected]"
CDK_AUTH_LOCAL-USERS_0_PASSWORD: "alice-secret"
CDK_AUTH_LOCAL-USERS_1_EMAIL: "[email protected]"
CDK_AUTH_LOCAL-USERS_1_PASSWORD: "bob-secret"
CDK_CLUSTERS_0_ID: "dev-cluster"
CDK_CLUSTERS_0_NAME: "dev-cluster"
CDK_CLUSTERS_0_BOOTSTRAPSERVERS: "redpanda-1:9093"
CDK_CLUSTERS_0_SCHEMAREGISTRY_URL: "http://redpanda-1:18084"
CDK_CLUSTERS_0_COLOR: "#E6702F"
CDK_CLUSTERS_0_ICON: "elephant"
CDK_CLUSTERS_1_ID: "prod-cluster"
CDK_CLUSTERS_1_NAME: "prod-cluster"
CDK_CLUSTERS_1_BOOTSTRAPSERVERS: "redpanda-0:9092"
CDK_CLUSTERS_1_SCHEMAREGISTRY_URL: "http://redpanda-0:18081"
CDK_CLUSTERS_1_COLOR: "#6A57C8"
CDK_CLUSTERS_1_ICON: "kafka"
CDK_MONITORING_CORTEX-URL: http://conduktor-monitoring:9009/
CDK_MONITORING_ALERT-MANAGER-URL: http://conduktor-monitoring:9010/
CDK_MONITORING_CALLBACK-URL: http://conduktor-console:8080/monitoring/api/
CDK_MONITORING_NOTIFICATIONS-CALLBACK-URL: http://localhost:8080
redpanda-0:
command:
- redpanda
- start
- --kafka-addr internal://0.0.0.0:9092,external://0.0.0.0:19092
- --advertise-kafka-addr internal://redpanda-0:9092,external://localhost:19092
- --pandaproxy-addr internal://0.0.0.0:8082,external://0.0.0.0:18082
# Address the broker advertises to clients that connect to the HTTP Proxy.
- --advertise-pandaproxy-addr internal://redpanda-0:8082,external://localhost:18082
- --schema-registry-addr internal://0.0.0.0:8081,external://0.0.0.0:18081
# Redpanda brokers use the RPC API to communicate with eachother internally.
- --rpc-addr redpanda-0:33145
- --advertise-rpc-addr redpanda-0:33145
- --smp 1
- --memory 1G
- --mode dev-container
- --default-log-level=info
image: docker.redpanda.com/redpandadata/redpanda:v24.1.9
container_name: redpanda-0
volumes:
- redpanda-0:/var/lib/redpanda/data
ports:
- 18081:18081
- 18082:18082
- 19092:19092
- 19644:9644
healthcheck:
test: ["CMD-SHELL", "rpk cluster health | grep -E 'Healthy:.+true' || exit 1"]
interval: 15s
timeout: 3s
retries: 5
start_period: 5s
redpanda-1:
command:
- redpanda
- start
- --kafka-addr internal://0.0.0.0:9093,external://0.0.0.0:19093
- --advertise-kafka-addr internal://redpanda-1:9093,external://localhost:19093
- --pandaproxy-addr internal://0.0.0.0:8083,external://0.0.0.0:18083
- --advertise-pandaproxy-addr internal://redpanda-1:8083,external://localhost:18083
- --schema-registry-addr internal://0.0.0.0:8084,external://0.0.0.0:18084
- --rpc-addr redpanda-1:33146
- --advertise-rpc-addr redpanda-1:33146
- --smp 1
- --memory 1G
- --mode dev-container
- --default-log-level=info
image: docker.redpanda.com/redpandadata/redpanda:v24.1.6
container_name: redpanda-1
volumes:
- redpanda-1:/var/lib/redpanda/data
ports:
- 18083:18083
- 18084:18084
- 19093:19093
- 19645:9645
healthcheck:
test: ["CMD-SHELL", "rpk cluster health | grep -E 'Healthy:.+true' || exit 1"]
interval: 15s
timeout: 3s
retries: 5
start_period: 5s
volumes:
pg_data_ss: {}
conduktor_data_ss: {}
redpanda-0: {}
redpanda-1: {}