-
Notifications
You must be signed in to change notification settings - Fork 61
/
docker-compose-kafka.yml
43 lines (41 loc) · 1.13 KB
/
docker-compose-kafka.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
version: '3.8'
services:
redpanda:
image: docker.vectorized.io/vectorized/redpanda:v23.1.4
container_name: redpanda
command:
- redpanda start
- --smp 1
- --overprovisioned
- --kafka-addr PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092
- --advertise-kafka-addr PLAINTEXT://redpanda:29092,OUTSIDE://localhost:9092
- --pandaproxy-addr 0.0.0.0:8082
- --advertise-pandaproxy-addr localhost:8082
ports:
- "8081:8081"
- "8082:8082"
- "9092:9092"
- "9644:9644"
- "29092:29092"
console:
image: docker.redpanda.com/redpandadata/console:v2.2.3
entrypoint: /bin/sh
command:
- -c
- "echo \"$$CONSOLE_CONFIG_FILE\" > /tmp/config.yml; /app/console"
environment:
CONFIG_FILEPATH: /tmp/config.yml
CONSOLE_CONFIG_FILE: |
kafka:
brokers: ["redpanda:29092"]
schemaRegistry:
enabled: true
urls: ["http://redpanda:8081"]
redpanda:
adminApi:
enabled: true
urls: ["http://redpanda:9644"]
ports:
- "8080:8080"
depends_on:
- redpanda