This repository has been archived on 2023-05-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
neo/docker-compose.monitoring.yml
2023-03-04 20:43:23 +01:00

49 lines
908 B
YAML

version: '2.2'
networks:
metrics:
services:
gatus:
build: custom/gatus
environment:
VIRTUAL_HOST: s.ixvd.net
VIRTUAL_PORT: 8080
LETSENCRYPT_HOST: s.ixvd.net
volumes:
- /srv/gatus/data:/data
networks:
- proxy
- minecraft
- cloud
- metrics
- internal
prometheus:
build:
context: ./custom/prometheus
networks:
- metrics
extra_hosts:
- "docker.host:host-gateway"
prom-blackbox:
image: prom/blackbox-exporter:latest
networks:
- metrics
- internal
## THIS CONTANIER IS AVAILABLE ON THE HOST ##
node-exporter:
image: quay.io/prometheus/node-exporter:latest
container_name: node-exporter
command:
- '--path.rootfs=/host'
network_mode: host
pid: host
restart: unless-stopped
volumes:
- '/:/host:ro,rslave'
cap_add:
- SYS_TIME