22 lines
551 B
Text
22 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
|