27 lines
880 B
SYSTEMD
27 lines
880 B
SYSTEMD
|
[Unit]
|
||
|
Description=Podman container-proxy.service
|
||
|
Wants=network-online.target
|
||
|
After=network-online.target
|
||
|
RequiresMountsFor=%t/containers
|
||
|
|
||
|
[Service]
|
||
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
||
|
Restart=on-failure
|
||
|
TimeoutStopSec=70
|
||
|
ExecStartPre=/bin/mkdir -p /home/pi/containers/proxy
|
||
|
ExecStartPre=/bin/rm -f %t/%n.ctr-id
|
||
|
ExecStart=/usr/bin/podman run --cidfile=%t/%n.ctr-id --cgroups=no-conmon --rm --sdnotify=conmon --replace -d \
|
||
|
--name=proxy \
|
||
|
-v /home/pi/containers/proxy/data:/data:z \
|
||
|
-v /home/pi/containers/proxy/letsencrypt:/etc/letsencrypt:z \
|
||
|
--ip=10.88.0.17 \
|
||
|
-p 80:80 -p 443:443 -p 81:81 \
|
||
|
--label "io.containers.autoupdate=registry" \
|
||
|
docker.io/jc21/nginx-proxy-manager:latest
|
||
|
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
||
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
||
|
Type=notify
|
||
|
NotifyAccess=all
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=default.target
|