infrastructure/ansible/plays/services/kuma/docker-compose.yaml

27 lines
725 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"
2024-01-22 18:56:17 +01:00
- "traefik.docker.network=${COMPOSE_PROJECT_NAME}_default"
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
- pantalaimon
volumes:
data:
networks:
pantalaimon:
external: true
...