Antonio Mika
·
24 Feb 23
docker-compose.yml
1version: '3.8'
2
3services:
4 caddy:
5 image: ghcr.io/picosh/pico/caddy:latest
6 volumes:
7 - ./caddy/Caddyfile:/etc/caddy/Caddyfile
8 restart: always
9 profiles:
10 - caddy
11 - all
12 prometheus:
13 image: prom/prometheus:latest
14 volumes:
15 - ./prometheus/config:/etc/prometheus
16 command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml --web.external-url https://prometheus.${APP_DOMAIN:-dev.pico.sh} --storage.tsdb.retention.time 90d
17 restart: always
18 profiles:
19 - monitoring
20 - all
21 grafana:
22 image: grafana/grafana:latest
23 volumes:
24 - ./grafana/config:/etc/grafana
25 restart: always
26 profiles:
27 - monitoring
28 - all
29 blackbox_exporter:
30 image: prom/blackbox-exporter:latest
31 volumes:
32 - ./blackbox_exporter/config:/etc/blackbox_exporter
33 command: --config.file=/etc/blackbox_exporter/blackbox.yml
34 restart: always
35 profiles:
36 - monitoring
37 - all