29 lines
966 B
SYSTEMD
29 lines
966 B
SYSTEMD
[Unit]
|
|
Description=Podman container-nextcloud-nginx.service
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
Requires=container-nextcloud-fpm.service
|
|
After=container-nextcloud-fpm.service
|
|
RequiresMountsFor=%t/containers
|
|
BindsTo=pod-nextcloud.service
|
|
After=pod-nextcloud.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=nextcloud-nginx \
|
|
--pod-id-file %t/pod-nextcloud.pod-id \
|
|
-v nextcloud:/var/www/html \
|
|
-v /var/lib/containers/storage/volumes/nextcloud-nginx/_data/nginx.conf:/etc/nginx/nginx.conf \
|
|
--label "io.containers.autoupdate=registry" \
|
|
docker.io/nginx
|
|
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 |