31 lines
611 B
Django/Jinja
31 lines
611 B
Django/Jinja
[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
|