-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
94 lines (90 loc) · 2.33 KB
/
docker-compose.dev.yml
File metadata and controls
94 lines (90 loc) · 2.33 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:
mongo:
image: mongo:8.0
container_name: ezclaim-mongo-dev
restart: unless-stopped
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: ezclaim
MONGO_INITDB_ROOT_PASSWORD: E2ClaimPass
volumes:
- mongo_data:/data/db
healthcheck:
test: ["CMD", "mongosh", "--quiet", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 5
minio:
image: minio/minio:latest
container_name: ezclaim-minio-dev
restart: unless-stopped
ports:
- "9000:9000" # S3 API
- "9001:9001" # Console UI
environment:
MINIO_ROOT_USER: ezclaim
MINIO_ROOT_PASSWORD: E2ClaimPass
command: ["server", "/data", "--console-address", ":9001"]
volumes:
- minio_data:/data
healthcheck:
test: ["CMD", "mc", "--help"]
interval: 10s
timeout: 5s
retries: 5
minio-setup:
image: minio/mc:latest
container_name: ezclaim-minio-setup
depends_on:
- minio
restart: "no"
volumes:
- ./infra/minio/cors.json:/config/cors.json:ro
entrypoint: >
/bin/sh -c '
set -e;
echo "Waiting for MinIO to be ready...";
until (mc alias set local http://minio:9000 ezclaim E2ClaimPass >/dev/null 2>&1); do
sleep 3;
done;
echo "Ensuring bucket and applying CORS...";
mc mb -p local/ezclaim-dev || true;
mc cors set local/ezclaim-dev /config/cors.json;
echo "MinIO CORS configured for bucket ezclaim-dev";
'
redpanda:
image: docker.redpanda.com/redpandadata/redpanda:latest
container_name: ezclaim-redpanda-dev
restart: unless-stopped
ports:
- "9092:9092" # Kafka API
- "9644:9644" # Admin API
extra_hosts:
- "host.docker.internal:host-gateway"
command:
- redpanda
- start
- --overprovisioned
- --smp
- "1"
- --memory
- 1G
- --reserve-memory
- 0M
- --node-id
- "0"
- --check=false
- --kafka-addr
- PLAINTEXT://0.0.0.0:9092
- --advertise-kafka-addr
- PLAINTEXT://127.0.0.1:9092
healthcheck:
test: ["CMD", "bash", "-lc", "curl -fsS http://127.0.0.1:9644/v1/status/ready >/dev/null"]
interval: 10s
timeout: 5s
retries: 10
start_period: 15s
volumes:
mongo_data:
minio_data: