Advertisement
deusbog

Untitled

Sep 15th, 2022
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.65 KB | Source Code | 0 0
  1. version: '2'
  2.  
  3. networks:
  4.     monitor:
  5.         driver: bridge
  6.  
  7. services:
  8.     prometheus:
  9.         image: prom/prometheus
  10.         container_name: prometheus
  11.         hostname: prometheus
  12.         restart: always
  13.         volumes:
  14.            - /usr/local/src/config/prometheus.yml:/etc/prometheus/prometheus.yml
  15.             - /usr/local/src/config/node_down.yml:/etc/prometheus/node_down.yml
  16.         ports:
  17.            - "9090:9090"
  18.         networks:
  19.            - monitor
  20.  
  21.     alertmanager:
  22.         image: prom/alertmanager
  23.         container_name: alertmanager
  24.         hostname: alertmanager
  25.         restart: always
  26.         volumes:
  27.            - /usr/local/src/config/alertmanager.yml:/etc/alertmanager/alertmanager.yml
  28.         ports:
  29.            - "9093:9093"
  30.         networks:
  31.            - monitor
  32.  
  33.     grafana:
  34.         image: grafana/grafana
  35.         container_name: grafana
  36.         hostname: grafana
  37.         restart: always
  38.         ports:
  39.            - "3000:3000"
  40.         networks:
  41.            - monitor
  42.  
  43.     node-exporter:
  44.         image: quay.io/prometheus/node-exporter
  45.         container_name: node-exporter
  46.         hostname: node-exporter
  47.         restart: always
  48.         ports:
  49.            - "9100:9100"
  50.         networks:
  51.            - monitor
  52.  
  53.     cadvisor:
  54.         image: google/cadvisor:latest
  55.         container_name: cadvisor
  56.         hostname: cadvisor
  57.         restart: always
  58.         volumes:
  59.            - /:/rootfs:ro
  60.             - /var/run:/var/run:rw
  61.             - /sys:/sys:ro
  62.             - /var/lib/docker/:/var/lib/docker:ro
  63.         ports:
  64.            - "8080:8080"
  65.         networks:
  66.            - monitor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement