44 lines
1019 B
YAML
44 lines
1019 B
YAML
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
|
|
# persist data
|
|
- prometheus_storage:/prometheus
|
|
depends_on:
|
|
- caddy
|
|
command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
|
|
|
|
# log viewer
|
|
grafana:
|
|
image: grafana/grafana:latest
|
|
volumes:
|
|
- ./grafana.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
|
|
- grafana_storage:/var/lib/grafana
|
|
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
|
|
|
|
volumes:
|
|
prometheus_storage:
|
|
grafana_storage:
|