
It makes more sense to wrap every quadlet in its own dir. This makes it easier to copy a quadlet with batteries included for apps that require a valid config to be useful.
24 lines
368 B
Text
24 lines
368 B
Text
[Unit]
|
|
Description=Reverse proxy
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=default.target
|
|
|
|
[Container]
|
|
Image=caddy.build
|
|
ContainerName=caddy
|
|
HostName=caddy
|
|
|
|
PublishPort=80:80
|
|
PublishPort=443:443
|
|
PublishPort=443:443/udp
|
|
|
|
Volume=/volumes/caddy/config:/config
|
|
Volume=/volumes/caddy/data:/data
|
|
|
|
Volume=./Caddyfile:/etc/caddy/Caddyfile
|
|
|