This repository was archived by the owner on Mar 16, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathcompose.yml
More file actions
99 lines (94 loc) · 3.01 KB
/
Copy pathcompose.yml
File metadata and controls
99 lines (94 loc) · 3.01 KB
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
services:
consul:
container_name: consul
image: hashicorp/consul:latest
platform: ${PLATFORM:-linux/amd64}
ports:
- "8500:8500"
- "8600:8600/tcp"
- "8600:8600/udp"
restart: on-failure
order_db:
container_name: order_db
image: debezium/postgres:11
platform: ${PLATFORM:-linux/amd64}
ports:
- "5432:5432"
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
restart: on-failure
customer_db:
container_name: customer_db
image: debezium/postgres:11
platform: ${PLATFORM:-linux/amd64}
ports:
- "5433:5432"
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
restart: on-failure
inventory_db:
container_name: inventory_db
image: debezium/postgres:11
platform: ${PLATFORM:-linux/amd64}
ports:
- "5434:5432"
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
restart: on-failure
redpanda:
image: docker.redpanda.com/redpandadata/redpanda:v24.2.7
container_name: redpanda
command:
- redpanda start
# Mode dev-container uses well-known configuration properties for development in containers.
- --mode dev-container
# Tells Seastar (the framework Redpanda uses under the hood) to use 1 core on the system.
- --smp 1
- --kafka-addr internal://0.0.0.0:9092,external://0.0.0.0:19092
# Address the broker advertises to clients that connect to the Kafka API.
# Use the internal addresses to connect to the Redpanda brokers
# from inside the same Docker network.
# Use the external addresses to connect to the Redpanda brokers
# from outside the Docker network.
- --advertise-kafka-addr internal://redpanda: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: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 each other internally.
- --rpc-addr redpanda:33145
- --advertise-rpc-addr redpanda:33145
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
restart: on-failure
debezium:
image: debezium/connect:2.4
container_name: debezium
environment:
BOOTSTRAP_SERVERS: redpanda:9092
GROUP_ID: 1
CONFIG_STORAGE_TOPIC: connect_configs
OFFSET_STORAGE_TOPIC: connect_offsets
depends_on:
- customer_db
- inventory_db
- order_db
- redpanda
ports:
- "8083:8083"
restart: on-failure