38 lines
865 B
YAML
38 lines
865 B
YAML
|
---
|
||
|
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.serguzim.me"
|
||
|
|
||
|
caddy_ports_default:
|
||
|
- 80:80
|
||
|
- 443:443
|
||
|
- 443:443/udp
|
||
|
caddy_ports: "{{ caddy_ports_default | union(caddy_ports_extra) }}"
|
||
|
|
||
|
caddy_svc:
|
||
|
name: caddy
|
||
|
|
||
|
caddy_env:
|
||
|
ACMEDNS_USER: "{{ caddy_acmedns_user }}"
|
||
|
ACMEDNS_PASS: "{{ caddy_acmedns_pass }}"
|
||
|
ACMEDNS_SUBD: "{{ caddy_acmedns_subd }}"
|
||
|
ACMEDNS_URL: "{{ caddy_acmedns_url }}"
|
||
|
|
||
|
caddy_compose:
|
||
|
watchtower: false
|
||
|
image: caddy-custom:2-alpine
|
||
|
volumes:
|
||
|
- "./config:/etc/caddy/"
|
||
|
- data:/data
|
||
|
file:
|
||
|
services:
|
||
|
app:
|
||
|
build:
|
||
|
context: .
|
||
|
ports: "{{ caddy_ports }}"
|
||
|
extra_hosts:
|
||
|
- host.docker.internal:host-gateway
|
||
|
volumes:
|
||
|
data:
|