22 lines
513 B
Text
22 lines
513 B
Text
[Unit]
|
|
Description = HTTP Server (Caddy)
|
|
Wants = network-online.target
|
|
After = network-online.target
|
|
Wants=ign_files_init.service
|
|
After=ign_files_init.service
|
|
|
|
[Container]
|
|
ContainerName = caddy
|
|
Image=localhost/caddy:2.8
|
|
Volume=caddy_data.volume:/data:z
|
|
Volume=fcos_images.volume:/srv/isos:ro,z
|
|
Volume=ign_files.volume:/srv/config:ro,z
|
|
PublishPort=80:80/tcp
|
|
|
|
[Service]
|
|
WorkingDirectory=/var/roothome/caddy/
|
|
ExecStartPre=/usr/bin/podman build -t caddy:2.8 .
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|