26 lines
660 B
YAML
26 lines
660 B
YAML
{% set _name = service_name|default("kuma") %}
|
|
{% set _urls = urls|default(kuma.urls)|mandatory %}
|
|
---
|
|
services:
|
|
kuma:
|
|
image: louislam/uptime-kuma:latest
|
|
restart: unless-stopped
|
|
volumes:
|
|
- data:/app/data
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.kuma-{{ _name }}.rule={{ _urls | map('regex_replace', '^(.*)$', 'Host(`\\1`)') | join(' || ') }}"
|
|
- "traefik.http.routers.kuma-{{ _name }}.entryPoints=websecure"
|
|
- "traefik.http.services.kuma-{{ _name }}.loadbalancer.server.port=3001"
|
|
networks:
|
|
- default
|
|
- pantalaimon
|
|
|
|
volumes:
|
|
data:
|
|
|
|
networks:
|
|
pantalaimon:
|
|
external: true
|
|
...
|