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

36 lines
929 B
Django/Jinja

# 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