[Unit] Description = "Caddy Container" [Container] ContainerName = caddy Image = docker.io/caddy:${caddy_version} Volume = ${caddy_data_volume_name}.volume:/data:z Volume = ${caddy_config_file_path}:/etc/caddy/Caddyfile:ro,z Network = ${caddy_network_name}.network PublishPort = 80:80 PublishPort = 443:443 [Service] Restart=on-failure [Install] WantedBy=default.target