role-nextcloud/templates/nextcloud-cron.quadlet.j2

31 lines
611 B
Plaintext
Raw Normal View History

2024-02-03 21:12:59 +00:00
[Unit]
Description=Nextcloud Cron
Requires=nextcloud-postgres.service
Requires=nextcloud-redis.service
After=nextcloud-postgres.service
After=nextcloud-redis.service
[Container]
ContainerName=nextcloud-cron
Image=docker.io/library/nextcloud:{{ nextcloud_version }}-fpm-alpine
Entrypoint=/cron.sh
Network=nextcloud.network
Volume=/var/nextcloud/app:/var/www/html:z
Label="traefik.enable=false"
[Service]
Restart=on-failure
# Restart Delay
RestartSec=30
# Allowed time for the service to start.
TimeoutStartSec=90
# Allowed time for the service to stop.
TimeoutStopSec=90
[Install]
WantedBy=default.target