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