home-pods/container-php-fpm.service

27 lines
760 B
SYSTEMD
Raw Permalink Normal View History

2022-08-21 10:59:37 +02:00
[Unit]
Description=Podman container-php-fpm.service
Wants=network-online.target
After=network-online.target
BindsTo=pod-web.service
After=pod-web.service
[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
TimeoutStopSec=70
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=php-fpm \
--pod-id-file %t/pod-web.pod-id \
-v nginx-web:/var/www/html:z \
--tz=Europe/Brussels \
--label "io.containers.autoupdate=registry" \
docker.io/php:fpm-alpine
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