2024-09-26 22:02:36 +00:00
|
|
|
---
|
|
|
|
caddy_acmedns_user: "{{ vault_caddy.acmedns.user }}"
|
|
|
|
caddy_acmedns_pass: "{{ vault_caddy.acmedns.pass }}"
|
|
|
|
caddy_acmedns_subd: "{{ vault_caddy.acmedns.subd }}"
|
|
|
|
caddy_acmedns_url: "https://{{ acme_dns.host }}"
|
|
|
|
|
|
|
|
caddy_ports_default:
|
|
|
|
- "{{ host_vpn.ip }}:2019:2019"
|
2024-10-22 16:29:03 +00:00
|
|
|
caddy_ports_extra: "{{ host_services | services_get_attr('ports') | flatten | services_ports_to_docker('reverse_proxy') }}"
|
2024-09-26 22:02:36 +00:00
|
|
|
caddy_ports: "{{ caddy_ports_default | union(caddy_ports_extra) }}"
|
|
|
|
|
|
|
|
caddy_env:
|
|
|
|
CADDY_ADMIN: 0.0.0.0:2019
|
|
|
|
|
|
|
|
ACMEDNS_USER: "{{ caddy_acmedns_user }}"
|
|
|
|
ACMEDNS_PASS: "{{ caddy_acmedns_pass }}"
|
|
|
|
ACMEDNS_SUBD: "{{ caddy_acmedns_subd }}"
|
|
|
|
ACMEDNS_URL: "{{ caddy_acmedns_url }}"
|
|
|
|
|
|
|
|
caddy_compose:
|
|
|
|
watchtower: false
|
2024-09-27 20:56:49 +00:00
|
|
|
image: "{{ (container_registry.public, 'services/caddy:2-alpine') | path_join }}"
|
2024-09-26 22:02:36 +00:00
|
|
|
volumes:
|
|
|
|
- "./config:/etc/caddy/"
|
|
|
|
- data:/data
|
|
|
|
file:
|
|
|
|
services:
|
|
|
|
app:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
ports: "{{ caddy_ports }}"
|
|
|
|
extra_hosts:
|
|
|
|
- host.docker.internal:host-gateway
|
|
|
|
volumes:
|
|
|
|
data:
|