2022-09-26 23:10:48 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Podman container-rproxy-certbot.service
|
|
|
|
Documentation=man:podman-generate-systemd(1)
|
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
|
|
|
|
TimeoutStopSec=70
|
|
|
|
ExecStartPre=/bin/rm -f %t/container-rproxy-certbot.pid %t/container-rproxy-certbot.ctr-id
|
2022-10-06 23:15:06 +02:00
|
|
|
ExecStartPre=/usr/bin/podman pull docker.io/certbot/certbot
|
2022-11-02 19:36:59 +01:00
|
|
|
ExecStart=/usr/bin/podman run \
|
|
|
|
--conmon-pidfile %t/container-rproxy-certbot.pid \
|
|
|
|
--cidfile %t/container-rproxy-certbot.ctr-id \
|
|
|
|
--cgroups=no-conmon \
|
|
|
|
--pod-id-file %t/pod-rproxy.pod-id \
|
|
|
|
--replace \
|
|
|
|
-v /etc/resolv.conf:/etc/resolv.conf:ro \
|
2022-12-18 00:05:58 +01:00
|
|
|
-v {{ services_data_directory }}/pod-rproxy/etc-letsencrypt/_data:/etc/letsencrypt \
|
2022-11-02 19:36:59 +01:00
|
|
|
-v var-lib-letsencrypt:/var/lib/letsencrypt \
|
|
|
|
-v var-www-html:/var/www/html \
|
|
|
|
--name=pod-rproxy-certbot \
|
|
|
|
docker.io/certbot/certbot --non-interactive renew
|
2022-09-26 23:10:48 +02:00
|
|
|
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/container-rproxy-certbot.ctr-id
|
2022-10-02 14:56:43 +02:00
|
|
|
Type=oneshot
|