27 lines
725 B
YAML
27 lines
725 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.docker.network=${COMPOSE_PROJECT_NAME}_default"
|
|
- "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
|
|
...
|