iac/modules/castopod/files/caddy.container.tftpl
Florian Maury 1b9eeb1288 blip
2025-01-10 16:10:39 +01:00

21 lines
551 B
Text

[Unit]
Description = "Caddy Container"
[Container]
ContainerName = "${caddy_container_name}"
Image = "docker.io/caddy/caddy:${caddy_version}"
Volume = ${caddy_config_dir}/Caddyfile:/etc/caddy/Caddyfile:ro
Volume = ${castopod_media_volume_name}.volume:/media:z
Network = ${caddy_frontend_network_name}.network
Network = ${castopod_frontend_network_name}.network
PublishPort=${castopod_upstream_port}:8000
[Service]
Restart=on-failure
ExecStartPre=/usr/bin/chcon -t container_file_t ${caddy_config_dir}/Caddyfile
[Install]
WantedBy=default.target