iac/modules/netboot_server/files/caddy/caddy.container

23 lines
513 B
Text
Raw Permalink Normal View History

2024-06-04 09:25:59 +00:00
[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