2023-08-12 15:49:20 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Hugo static site builder
|
|
|
|
Wants=container-build@%N.service container-volume@%N.service nginx-serve-volume@%N.service
|
|
|
|
After=container-build@%N.service container-volume@%N.service
|
|
|
|
Before=nginx-serve-volume@%N.service
|
|
|
|
|
|
|
|
[Container]
|
2023-11-05 16:48:28 +00:00
|
|
|
AutoUpdate=local
|
2023-08-12 15:49:20 +00:00
|
|
|
ContainerName=%N
|
|
|
|
EnvironmentFile=%E/coreos-home-server/%N/%N.env
|
2023-11-05 16:48:28 +00:00
|
|
|
HealthCmd=timeout 5s curl --fail --silent --show-error -o /dev/null localhost:8080
|
2023-08-12 15:49:20 +00:00
|
|
|
Image=localhost/%N:latest
|
|
|
|
Network=internal
|
2023-11-05 16:48:28 +00:00
|
|
|
PodmanArgs=--sdnotify=healthy
|
2023-08-12 15:49:20 +00:00
|
|
|
Volume=%N:/build:z
|
|
|
|
Volume=%N-ssh:/etc/ssh/keys:z
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|