# vi: ft=yaml version: "3" networks: traefik: external: true volumes: data: driver_opts: type: "nfs" o: "addr=192.168.30.10,nolock,soft,rw" device: ":/mnt/data/prometheus/data" services: prometheus: image: quay.io/prometheus/prometheus networks: - traefik # volumes: # - type: volume # source: data # target: /prometheus # volume: # nocopy: true deploy: labels: - traefik.enable=true - traefik.http.routers.prometheus.entrypoints=localsecure - traefik.http.routers.prometheus.rule=Host(`metrics.kun.is`) - traefik.http.routers.prometheus.tls=true - traefik.http.routers.prometheus.tls.certresolver=letsencrypt - traefik.http.routers.prometheus.service=prometheus - traefik.http.services.prometheus.loadbalancer.server.port=9090 - traefik.docker.network=traefik