2021-07-23 22:31:01 +00:00
|
|
|
[Unit]
|
2021-08-28 11:51:11 +00:00
|
|
|
Description=NGINX Web Server
|
2021-07-23 22:31:01 +00:00
|
|
|
Wants=container-build@%N.service
|
|
|
|
After=container-build@%N.service
|
|
|
|
|
|
|
|
[Service]
|
2021-08-14 21:28:28 +00:00
|
|
|
Type=notify
|
|
|
|
NotifyAccess=all
|
2021-08-28 18:16:29 +00:00
|
|
|
SyslogIdentifier=%N
|
2021-08-14 21:28:28 +00:00
|
|
|
Restart=on-failure
|
|
|
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
2021-09-08 17:45:04 +00:00
|
|
|
ExecStart=/bin/podman run --replace --name %N --net internal --sdnotify=conmon \
|
2021-07-23 22:31:01 +00:00
|
|
|
--publish 80:80 --publish 443:443 \
|
|
|
|
--volume nginx-conf:/etc/nginx/conf.d:z \
|
|
|
|
--volume letsencrypt:/etc/ssl/private:z,rshared,ro \
|
|
|
|
localhost/%N:latest
|
2021-08-14 21:28:28 +00:00
|
|
|
ExecStop=/bin/podman stop --ignore --time 10 %N
|
|
|
|
ExecStopPost=/bin/podman rm --ignore --force %N
|
2021-07-23 22:31:01 +00:00
|
|
|
ExecReload=/bin/podman exec %N %N -s reload
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|