2022-02-14 18:11:23 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Podman container-nextcloud-fpm.service
|
|
|
|
Wants=network-online.target
|
|
|
|
After=network-online.target
|
|
|
|
Requires=container-nextcloud-redis.service
|
|
|
|
After=container-nextcloud-redis.service
|
|
|
|
Requires=container-nextcloud-postgres.service
|
|
|
|
After=container-nextcloud-postgres.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-fpm \
|
|
|
|
--pod-id-file %t/pod-nextcloud.pod-id \
|
2022-07-02 15:04:51 +02:00
|
|
|
--tz=Europe/Brussels \
|
2022-02-14 18:11:23 +01:00
|
|
|
-v nextcloud:/var/www/html:z \
|
|
|
|
-e POSTGRES_DB=nextcloud \
|
|
|
|
-e POSTGRES_USER=nextcloud \
|
|
|
|
-e POSTGRES_PASSWORD=nextcloud \
|
|
|
|
-e POSTGRES_HOST=localhost \
|
|
|
|
-e OVERWRITEPROTOCOL=https \
|
|
|
|
-e REDIS_HOST=localhost \
|
|
|
|
-e "NEXTCLOUD_TRUSTED_DOMAINS=cloud.vanoverloop.xyz cloud.vanoverloop.duckdns.org" \
|
|
|
|
--label "io.containers.autoupdate=registry" \
|
|
|
|
docker.io/nextcloud: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]
|
2022-07-02 15:04:51 +02:00
|
|
|
WantedBy=default.target
|