-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
102 lines (96 loc) · 2.64 KB
/
docker-compose.yaml
File metadata and controls
102 lines (96 loc) · 2.64 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
100
101
102
services:
db:
image: postgres:18-alpine
container_name: modulith_db
ports:
- "${DB_PORT:-5432}:5432"
env_file:
- .env.docker
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
networks:
- modulith-network
valkey:
image: valkey/valkey:8.0-alpine
container_name: modulith_valkey
ports:
- "${VALKEY_PORT:-6379}:6379"
command: valkey-server --appendonly yes
volumes:
- valkey_data:/data
healthcheck:
test: ["CMD", "valkey-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
networks:
- modulith-network
jaeger:
image: jaegertracing/all-in-one:1.55
container_name: modulith_jaeger
ports:
- "${JAEGER_UI_PORT:-16686}:16686" # UI
- "${JAEGER_OTLP_GRPC_PORT:-4317}:4317" # OTLP gRPC
- "${JAEGER_OTLP_HTTP_PORT:-4318}:4318" # OTLP HTTP
environment:
- COLLECTOR_OTLP_ENABLED=true
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:16686/"]
interval: 10s
timeout: 5s
retries: 5
networks:
- modulith-network
prometheus:
image: prom/prometheus:v2.50.0
container_name: modulith_prometheus
ports:
- "${PROMETHEUS_PORT:-9090}:9090"
volumes:
- ./deployment/prometheus.yaml:/etc/prometheus/prometheus.yml:ro
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention.time=15d'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:9090/-/healthy"]
interval: 10s
timeout: 5s
retries: 5
networks:
- modulith-network
grafana:
image: grafana/grafana:10.3.0
container_name: modulith_grafana
ports:
- "${GRAFANA_PORT:-3000}:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_ADMIN_PASSWORD:-admin}
- GF_INSTALL_PLUGINS=
volumes:
- grafana_data:/var/lib/grafana
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/health"]
interval: 10s
timeout: 5s
retries: 5
networks:
- modulith-network
depends_on:
- prometheus
volumes:
postgres_data:
valkey_data:
prometheus_data:
grafana_data:
networks:
modulith-network:
driver: bridge