This repository has been archived by the owner on Sep 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
100 lines (91 loc) · 2.17 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
version: "3.8"
networks:
messaging:
name: messaging
volumes:
rp-1:
name: rp-1
rp-2:
name: rp-2
rp-3:
name: rp-3
services:
rp-1:
image: vectorized/redpanda:v21.4.6
container_name: rp-1
volumes:
- rp-1:/var/lib/redpanda/data
- ./redpanda/rp-1.yaml:/etc/redpanda/redpanda.yaml
networks:
- messaging
ports:
- 9092:9092
command: >
redpanda start
--smp 1
--memory 1G
--reserve-memory 0M
--overprovisioned
--node-id 0
--check=false
--logger-log-level kafka=trace
restart: on-failure
rp-2:
image: vectorized/redpanda:v21.4.6
container_name: rp-2
volumes:
- rp-2:/var/lib/redpanda/data
- ./redpanda/rp-2.yaml:/etc/redpanda/redpanda.yaml
networks:
- messaging
ports:
- 9093:9093
command: >
redpanda start
--smp 1
--memory 1G
--reserve-memory 0M
--overprovisioned
--node-id 1
--seeds "rp-1:33145"
--check=false
--logger-log-level kafka=trace
restart: on-failure
rp-3:
image: vectorized/redpanda:v21.4.6
container_name: rp-3
volumes:
- rp-3:/var/lib/redpanda/data
- ./redpanda/rp-3.yaml:/etc/redpanda/redpanda.yaml
networks:
- messaging
ports:
- 9094:9094
command: >
redpanda start
--smp 1
--memory 1G
--reserve-memory 0M
--overprovisioned
--node-id 2
--seeds "rp-1:33145"
--check=false
--logger-log-level kafka=trace
restart: on-failure
schema-registry:
image: confluentinc/cp-schema-registry:6.1.1
container_name: schema-registry
depends_on:
- rp-1
- rp-2
- rp-3
networks:
- messaging
ports:
- 8081:8081
restart: on-failure
environment:
SCHEMA_REGISTRY_LOG4J_ROOT_LOGLEVEL: DEBUG
SCHEMA_REGISTRY_HOST_NAME: schema-registry
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: PLAINTEXT://rp-1:29092
SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:8081