-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (56 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
61 lines (56 loc) · 1.38 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
version: "3.8"
services:
gateway:
build: .
image: mockinggod:v1.1
# FIX 1: Retry on crash (Wait for MinIO)
restart: on-failure
ports:
- "8080:8080"
- "9090:9090"
environment:
- MINIO_ENDPOINT=minio:9000
- MINIO_ACCESS_KEY=admin
- MINIO_SECRET_KEY=password
volumes:
- ./configs:/app/configs
depends_on:
- minio
minio:
image: minio/minio
command: server /data --console-address ":9001"
ports:
- "9001:9001" # Console (Browser)
# FIX 2: Expose API port (Required for external tools/debugging)
- "9000:9000"
environment:
- MINIO_ROOT_USER=admin
- MINIO_ROOT_PASSWORD=password
volumes:
- minio_data:/data
# ... (Prometheus and Grafana remain the same) ...
prometheus:
image: prom/prometheus:latest
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
ports:
- "9091:9090"
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--storage.tsdb.retention.time=15d"
grafana:
image: grafana/grafana:latest
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
depends_on:
- prometheus
volumes:
- grafana_data:/var/lib/grafana
volumes:
minio_data:
prometheus_data:
grafana_data: