-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.observability.yaml
More file actions
79 lines (72 loc) · 1.93 KB
/
compose.observability.yaml
File metadata and controls
79 lines (72 loc) · 1.93 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
name: 2026-game-observe
services:
caddy-observe:
image: caddy:2.10-alpine
container_name: sitgame-observe-caddy
restart: unless-stopped
ports:
- "9487:9487"
volumes:
- ./Caddyfile.observability:/etc/caddy/Caddyfile:ro
- caddy_observe_data:/data
- caddy_observe_config:/config
depends_on:
- prometheus
- victoriatraces
- loki
networks:
- app_net
prometheus:
image: prom/prometheus:v3.5.0
container_name: sitgame-observe-prometheus
restart: unless-stopped
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--storage.tsdb.retention.time=30d"
volumes:
- prometheus_data:/prometheus
- ./prometheus.observability.yml:/etc/prometheus/prometheus.yml:ro
networks:
- app_net
victoriatraces:
image: victoriametrics/victoria-traces:latest
container_name: sitgame-victoriatraces
restart: unless-stopped
command:
- "-storageDataPath=/victoria-traces-data"
- "-retentionPeriod=7d"
- "-otlpGRPCListenAddr=:4317"
- "-otlpGRPC.tls=false"
volumes:
- victoria_traces_data:/victoria-traces-data
networks:
- app_net
loki:
image: grafana/loki:3.5.4
container_name: sitgame-observe-loki
restart: unless-stopped
command:
- "-config.file=/etc/loki/local-config.yaml"
volumes:
- loki_data:/loki
networks:
- app_net
postgres-exporter:
image: prometheuscommunity/postgres-exporter:v0.17.1
container_name: sitgame-observe-postgres-exporter
restart: unless-stopped
environment:
DATA_SOURCE_NAME: postgresql://2026-game:2026-game-password@postgres:5432/2026-game?sslmode=disable
networks:
- app_net
networks:
app_net:
external: true
name: 2026-game_default
volumes:
caddy_observe_data:
caddy_observe_config:
prometheus_data:
victoria_traces_data:
loki_data: