coreos-home-server/service/nginx/quadlet/nginx.container

24 lines
555 B
Plaintext
Raw Normal View History

[Unit]
Description=NGINX Web Server
Wants=container-build@%N.service
After=container-build@%N.service
[Container]
2023-11-05 17:43:57 +00:00
AutoUpdate=local
ContainerName=%N
2023-11-05 17:43:57 +00:00
HealthCmd=timeout 5s curl --fail --silent --show-error -o /dev/null localhost/cdn-cgi/health
Image=localhost/%N:latest
Network=internal
2023-11-05 17:43:57 +00:00
PodmanArgs=--sdnotify=healthy
PublishPort=80:80
PublishPort=443:443
Volume=nginx-conf:/etc/nginx/conf.d:z
Volume=letsencrypt:/etc/ssl/private:z,rshared,ro
[Service]
Restart=on-failure
ExecReload=/bin/podman exec %N nginx -s reload
[Install]
WantedBy=multi-user.target