2024-10-05 18:20:25 +00:00
|
|
|
services:
|
|
|
|
# r-proxy
|
|
|
|
caddy:
|
|
|
|
image: caddy:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
|
|
|
- '443:443/udp'
|
|
|
|
- 3000:3000
|
|
|
|
volumes:
|
|
|
|
- ./Caddyfile:/etc/caddy/Caddyfile
|
|
|
|
|
|
|
|
# metrics collector
|
|
|
|
prometheus:
|
|
|
|
image: prom/prometheus:latest
|
|
|
|
expose:
|
|
|
|
- 9090
|
|
|
|
volumes:
|
|
|
|
- ./prometheus.yaml:/etc/prometheus/prometheus.yml
|
2024-10-06 01:54:18 +00:00
|
|
|
# persist data
|
|
|
|
- prometheus_storage:/prometheus
|
2024-10-05 18:20:25 +00:00
|
|
|
depends_on:
|
|
|
|
- caddy
|
2024-10-06 01:54:18 +00:00
|
|
|
command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
|
2024-10-05 18:20:25 +00:00
|
|
|
|
|
|
|
# log viewer
|
|
|
|
grafana:
|
|
|
|
image: grafana/grafana:latest
|
|
|
|
volumes:
|
|
|
|
- ./grafana.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
|
2024-10-06 01:54:18 +00:00
|
|
|
- grafana_storage:/var/lib/grafana
|
2024-10-05 18:20:25 +00:00
|
|
|
environment:
|
|
|
|
- GF_AUTH_ANONYMOUS_ENABLED=true
|
|
|
|
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
|
|
|
|
- GF_AUTH_DISABLE_LOGIN_FORM=true
|
|
|
|
- GF_FEATURE_TOGGLES_ENABLE=traceqlEditor
|
|
|
|
depends_on:
|
|
|
|
- prometheus
|
2024-10-06 01:54:18 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
prometheus_storage:
|
|
|
|
grafana_storage:
|