infrastructure/coreos-config/plays/services/kuma/docker-compose.yaml

29 lines
706 B
YAML
Raw Normal View History

2023-03-30 21:51:23 +02:00
{% set _name = service_name|default("kuma") %}
2023-03-30 22:16:50 +02:00
{% set _urls = urls|default(kuma.urls)|mandatory %}
2023-03-30 21:51:23 +02:00
---
services:
kuma:
image: louislam/uptime-kuma:latest
restart: unless-stopped
volumes:
- data:/app/data
labels:
- "traefik.enable=true"
2023-03-30 22:16:50 +02:00
- "traefik.http.routers.kuma-{{ _name }}.rule={{ _urls | map('regex_replace', '^(.*)$', 'Host(`\\1`)') | join(' || ') }}"
2023-03-30 21:51:23 +02:00
- "traefik.http.routers.kuma-{{ _name }}.entryPoints=websecure"
- "traefik.http.services.kuma-{{ _name }}.loadbalancer.server.port=3001"
networks:
- default
- gateway
- pantalaimon
volumes:
data:
networks:
gateway:
external: true
pantalaimon:
external: true
...