-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
99 lines (92 loc) · 2.56 KB
/
docker-compose.yml
File metadata and controls
99 lines (92 loc) · 2.56 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
95
96
97
98
99
services:
api:
build: .
ports:
- "${API_PORT:-8000}:8000"
env_file:
- .env
environment:
- OTLP_ENDPOINT=http://jaeger:4317
- PROMETHEUS_BASE_URL=http://prometheus:9090
- DATABASE_URL=postgresql+asyncpg://app:app@postgres:5432/reliability_suite
- RATE_LIMIT_STORAGE_URI=redis://redis:6379/0
- CIRCUIT_BREAKER_CACHE_URL=redis://redis:6379/1
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
networks:
- monitoring
prometheus:
image: prom/prometheus:latest
volumes:
- ./infra/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./infra/prometheus/alert_rules.yml:/etc/prometheus/alert_rules.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- "${PROMETHEUS_PORT:-9099}:9090"
networks:
- monitoring
alertmanager:
image: prom/alertmanager:latest
command:
- '--config.file=/etc/alertmanager/alertmanager.yml'
- '--storage.path=/alertmanager'
volumes:
- ./infra/alertmanager/alertmanager.yml:/etc/alertmanager/alertmanager.yml
ports:
- "${ALERTMANAGER_PORT:-9093}:9093"
networks:
- monitoring
grafana:
image: grafana/grafana:latest
ports:
- "${GRAFANA_PORT:-3030}:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_ALLOW_SIGN_UP=false
volumes:
- ./infra/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- ./infra/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
- ./infra/grafana/dashboards:/var/lib/grafana/dashboards
networks:
- monitoring
jaeger:
image: jaegertracing/all-in-one:latest
ports:
- "${JAEGER_UI_PORT:-16686}:16686"
- "${OTLP_GRPC_PORT:-4317}:4317"
networks:
- monitoring
postgres:
image: postgres:17-alpine
environment:
- POSTGRES_DB=reliability_suite
- POSTGRES_USER=app
- POSTGRES_PASSWORD=app
ports:
- "${POSTGRES_PORT:-5432}:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U app -d reliability_suite"]
interval: 10s
timeout: 5s
retries: 5
networks:
- monitoring
redis:
image: redis:7.4-alpine
command: ["redis-server", "--save", "", "--appendonly", "no"]
ports:
- "${REDIS_PORT:-6379}:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
networks:
- monitoring
networks:
monitoring:
driver: bridge