Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2.5'
- services:
- mon_prometheus:
- image: prom/prometheus:latest
- container_name: mon_prometheus
- restart: unless-stopped
- volumes:
- - ../prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- depends_on:
- - mon_node-exporter
- - mon_cadvisor
- networks:
- backend:
- ipv4_address: 172.30.0.2
- mon_node-exporter:
- image: prom/node-exporter:latest
- container_name: mon_node-exporter
- restart: unless-stopped
- volumes:
- - /proc:/host/proc:ro
- - /sys:/host/sys:ro
- - /:/rootfs:ro
- command:
- - '--path.procfs=/host/proc'
- - '--path.sysfs=/host/sys'
- - '--path.rootfs=/rootfs'
- - '--collector.filesystem.ignored-mount-points="^(/rootfs|/host|)/(sys|proc|dev|host|etc)($$|/)"'
- - '--collector.filesystem.ignored-fs-types="^(sys|proc|auto|cgroup|devpts|ns|au|fuse\.lxc|mqueue)(fs|)$$"'
- networks:
- backend:
- ipv4_address: 172.30.0.3
- mon_cadvisor:
- image: gcr.io/cadvisor/cadvisor
- container_name: mon_cadvisor
- restart: unless-stopped
- volumes:
- - /:/rootfs:ro
- - /var/run:/var/run:rw
- - /sys:/sys:ro
- - /var/lib/docker/:/var/lib/docker:ro
- networks:
- backend:
- ipv4_address: 172.30.0.4
- mon_grafana:
- image: grafana/grafana:latest
- container_name: mon_grafana
- restart: unless-stopped
- volumes:
- - /opt/containers/grafana/grafana:/var/lib/grafana
- #user: "1000"
- depends_on:
- - mon_prometheus
- labels:
- - "traefik.enable=true"
- - "traefik.http.routers.grafana.entrypoints=https"
- - "traefik.http.routers.grafana.rule=(Host(`grafana.meinedomain.tld`))"
- - "traefik.http.routers.grafana.tls=true"
- - "traefik.http.routers.grafana.tls.certresolver=http"
- - "traefik.http.routers.grafana.service=grafana"
- - "traefik.http.services.grafana.loadbalancer.server.port=3000"
- - "traefik.docker.network=proxy"
- - "traefik.http.routers.grafana.middlewares=default@file"
- networks:
- proxy:
- ipv4_address: 172.18.0.5
- ipv6_address: 2a03:****:**:***:2::5
- backend:
- ipv4_address: 172.30.0.5
- networks:
- proxy:
- external: true
- backend:
- name: backend
- driver: bridge
- ipam:
- config:
- - subnet: 172.30.0.0/24
- gateway: 172.30.0.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement