-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (65 loc) · 1.62 KB
/
docker-compose.yml
File metadata and controls
67 lines (65 loc) · 1.62 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
---
services:
kafka:
image: docker.redpanda.com/redpandadata/redpanda:v25.1.1
command:
- redpanda
- start
- --smp
- '1'
- --reserve-memory
- 0M
- --set redpanda.auto_create_topics_enabled=true
- --overprovisioned
- --node-id
- '0'
- --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
- PLAINTEXT://0.0.0.0:28082,OUTSIDE://0.0.0.0:8082
- --advertise-pandaproxy-addr
- PLAINTEXT://redpanda:28082,OUTSIDE://localhost:8082
networks:
default:
aliases:
- redpanda
ports:
- 8082:8082
- 9092:9092
- 28082:28082
- 29092:29092
healthcheck:
test: ["CMD", "rpk", "cluster", "info"]
interval: 10s
timeout: 15s
retries: 10
# Requires docker-compose 2.30 or later
post_start:
- command: /bin/bash -c "rpk topic create test logs-unknown || true"
minio:
image: quay.io/minio/minio
command:
- server
- /data
ports:
- "9000:9000"
- "9001:9001"
volumes:
- ./test/bucket:/data
environment:
- MINIO_ROOT_USER=hotdog
- MINIO_ROOT_PASSWORD=hotdoggin
healthcheck:
test: ["CMD", "curl", "http://localhost:9000"]
interval: 1s
timeout: 1s
retries: 10
mc:
image: quay.io/minio/mc
depends_on:
minio:
condition: service_healthy
entrypoint: |
/bin/bash -c "mc alias set minio http://minio:9000/ hotdog hotdoggin && mc mb minio/hotdog"