2022-10-02 14:56:43 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Podman container-lrproxy-nginx.service
|
|
|
|
Documentation=man:podman-generate-systemd(1)
|
|
|
|
Wants=network.target
|
|
|
|
After=network-online.target
|
|
|
|
BindsTo=pod-lrproxy.service
|
|
|
|
After=pod-lrproxy.service
|
2022-10-30 22:09:01 +01:00
|
|
|
OnFailure=status-mail@%n.service
|
2022-10-02 14:56:43 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
|
|
|
Restart=on-failure
|
|
|
|
TimeoutStopSec=70
|
|
|
|
ExecStartPre=/bin/rm -f %t/container-lrproxy-nginx.pid %t/container-lrproxy-nginx.ctr-id
|
2022-11-02 20:03:12 +01:00
|
|
|
ExecStart=/usr/bin/podman run \
|
|
|
|
--conmon-pidfile %t/container-lrproxy-nginx.pid \
|
|
|
|
--cidfile %t/container-lrproxy-nginx.ctr-id \
|
|
|
|
--cgroups=no-conmon \
|
|
|
|
--pod-id-file %t/pod-lrproxy.pod-id \
|
|
|
|
--replace \
|
|
|
|
--label "io.containers.autoupdate=image" \
|
|
|
|
-dt \
|
2022-12-16 21:23:24 +01:00
|
|
|
{{ services_rproxy_nginx_add_hosts }} \
|
2023-02-12 19:37:33 +01:00
|
|
|
-v {{ services_root_directory }}/{{ services_resolv_host }}-resolv.conf:/etc/resolv.conf:ro \
|
2022-11-02 20:03:12 +01:00
|
|
|
-v ./.config/pod-lrproxy/nginx.conf:/etc/nginx/nginx.conf:ro \
|
|
|
|
-v ./.config/pod-lrproxy/nginx-conf.d:/etc/nginx/conf.d:ro \
|
|
|
|
-v ./.config/pod-lrproxy/dhparam.pem:/etc/ssl/certs/dhparam.pem:ro \
|
2022-12-18 00:05:58 +01:00
|
|
|
-v {{ services_data_directory }}/pod-lrproxy/etc-letsencrypt/_data:/etc/letsencrypt:ro \
|
2022-11-02 20:03:12 +01:00
|
|
|
--name=pod-lrproxy-nginx \
|
2022-12-16 23:42:57 +01:00
|
|
|
docker.io/library/nginx:{{ services_deploy_versions.lrproxy.nginx }}
|
2022-10-02 14:56:43 +02:00
|
|
|
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/container-lrproxy-nginx.ctr-id -t 10
|
|
|
|
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/container-lrproxy-nginx.ctr-id
|
|
|
|
PIDFile=%t/container-lrproxy-nginx.pid
|
|
|
|
Type=forking
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target default.target
|