This repository has been archived on 2023-12-26. You can view files and clone it, but cannot push or open issues or pull requests.
shoarma/ansible/roles/prometheus/docker-stack.yml.j2

37 lines
929 B
Text
Raw Normal View History

2023-07-23 09:28:43 +00:00
# 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