services: grafana: image: grafana/grafana:latest container_name: grafana volumes: - grafana-data:/var/lib/grafana labels: - "traefik.enable=true" - "traefik.http.routers.grafana.entrypoints=websecure" - "traefik.http.routers.grafana.rule=Host(`grafana.meftimes.com`)" - "traefik.http.services.grafana.loadbalancer.server.port=3000" networks: - backend - proxy restart: unless-stopped prometheus: image: prom/prometheus:latest container_name: prometheus command: - "--config.file=/etc/prometheus/prometheus.yml" volumes: - ./prometheus-config/prometheus.yml:/etc/prometheus/prometheus.yml - prometheus-data:/prometheus ports: - 9090:9090 networks: - backend restart: unless-stopped node_exporter: image: quay.io/prometheus/node-exporter:latest container_name: node_exporter command: - '--path.rootfs=/host' pid: host networks: - backend restart: unless-stopped volumes: - '/:/host:ro,rslave' volumes: grafana-data: driver: local prometheus-data: driver: local networks: proxy: external: true backend: external: true