-
Notifications
You must be signed in to change notification settings - Fork 949
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
94 lines (89 loc) · 2.32 KB
/
Copy pathdocker-compose.yml
File metadata and controls
94 lines (89 loc) · 2.32 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
services:
src:
image: redpandadata/redpanda:latest
command:
- redpanda
- start
- --node-id=0
- --mode dev-container
- --set rpk.additional_start_flags=[--reactor-backend=epoll]
- --smp=1
- --memory=2000M
- --kafka-addr=PLAINTEXT://0.0.0.0:9092
- --advertise-kafka-addr=PLAINTEXT://src:9092
healthcheck:
test: ["CMD", "rpk", "cluster", "health"]
interval: 5s
timeout: 3s
retries: 10
cpuset: "1"
mem_limit: 2500M
dst:
image: redpandadata/redpanda
command:
- redpanda
- start
- --node-id=0
- --mode dev-container
- --set rpk.additional_start_flags=[--reactor-backend=epoll]
- --smp=1
- --memory=2000M
- --kafka-addr=PLAINTEXT://0.0.0.0:9092
- --advertise-kafka-addr=PLAINTEXT://dst:9092
healthcheck:
test: ["CMD", "rpk", "cluster", "health"]
interval: 5s
timeout: 3s
retries: 10
cpuset: "2"
mem_limit: 2500M
setup:
image: redpandadata/redpanda:latest
depends_on:
src:
condition: service_healthy
entrypoint: /bin/bash
command:
- -c
- |
rpk topic create test-topic-0 \
--brokers src:9092 \
--partitions 40 \
--topic-config write.caching=true \
--topic-config flush.ms=1000
loader:
image: redpandadata/connect:edge-arm64
depends_on:
setup:
condition: service_completed_successfully
volumes:
# For STREAMING MODE replace config.yaml with loader-streaming.yaml
# - ./loader-streaming.yaml:/config.yaml:ro
- ./loader.yaml:/config.yaml:ro
command: ["-c", "/config.yaml"]
environment:
GOMAXPROCS: "2"
GOMEMLIMIT: "1GiB"
cpuset: "3,4"
mem_limit: 1500M
migrator:
image: redpandadata/connect:edge-arm64
depends_on:
src:
condition: service_healthy
dst:
condition: service_healthy
loader:
# For STREAMING MODE replace service_completed_successfully with service_started
# condition: service_started
condition: service_completed_successfully
volumes:
- ./migrator.yaml:/config.yaml:ro
command: ["-c", "/config.yaml"]
ports:
- "4195:4195"
environment:
GOMAXPROCS: "3"
GOMEMLIMIT: "3GiB"
cpuset: "5,6,7"
mem_limit: 3500M