Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services:
- prometheus:
- image: prom/prometheus:latest
- container_name: prometheus
- restart: unless-stopped
- volumes:
- - prometheus-etc:/etc/prometheus/
- - prometheus-data:/prometheus
- command:
- - '--config.file=/etc/prometheus/prometheus.yml'
- - '--storage.tsdb.path=/prometheus'
- - '--web.external-url=http://alertmanager:9093'
- - '--web.enable-remote-write-receiver'
- expose:
- - 9090
- ports:
- - 9090:9090
- networks:
- - monitoring
- loki:
- image: grafana/loki:latest
- ports:
- - "3100:3100"
- - "9096:9096"
- volumes:
- - loki-etc:/etc/loki/
- command: -config.file=/etc/loki/local-config.yml
- networks:
- - monitoring
- blackbox_exporter:
- image: prom/blackbox-exporter:latest
- container_name: blackbox
- restart: unless-stopped
- ports:
- - 9115:9115
- expose:
- - 9115
- volumes:
- - blackbox-etc:/etc/blackbox:ro
- command:
- - '--config.file=/etc/blackbox/blackbox.yml'
- networks:
- - monitoring
- alloy:
- image: grafana/alloy:latest
- volumes:
- - /opt/mydocker/config/config.alloy:/etc/alloy/config.alloy
- ports:
- - 12345:12345
- - 601:601
- - 51893:51893
- command: run --server.http.listen-addr=0.0.0.0:12345
- --storage.path=/var/lib/alloy/data /etc/alloy/config.alloy
- depends_on:
- - loki
- networks:
- - monitoring
- networks:
- monitoring:
- driver: bridge
- volumes:
- prometheus-etc:
- external: true
- prometheus-data:
- external: true
- blackbox-etc:
- external: true
- loki-etc:
- external: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement