2025-07-16 17:14:16 -06:00

27 lines
628 B
Django/Jinja

services:
caddy:
image: gitgud.foo/xbazzi/caddy-pimped:latest
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "2019:2019"
- "443:443/udp"
volumes:
{% for volume in item.volumes %}
- {{ volume }}
{% endfor %}
deploy:
mode: replicated
replicas: {{ item.replicas }}
restart_policy:
condition: {{ item.restart_condition }}
labels:
{% for key, val in item.labels.items() %}
{{ key }}: "{{ val }}"
{% endfor %}
placement:
constraints:
{% for constraint in item.constraints %}
- {{ constraint }}
{% endfor %}