Added PREVIEW cronjob to crontabs
This commit is contained in:
@@ -49,6 +49,14 @@ services:
|
||||
volumes:
|
||||
- nchome:/var/www/html:z
|
||||
- ncdata:/var/www/html/data
|
||||
- /srv/dev-disk-by-uuid-8ad400b8-bff1-4ae4-971c-9002f823ba0c/bands/Fearium:/ex_storage/bands/fearium
|
||||
- /srv/dev-disk-by-uuid-8ad400b8-bff1-4ae4-971c-9002f823ba0c/bands/Breakpoint9:/ex_storage/bands/breakpointnine
|
||||
- /srv/dev-disk-by-uuid-8ad400b8-bff1-4ae4-971c-9002f823ba0c/music:/ex_storage/music
|
||||
- /srv/dev-disk-by-uuid-8ad400b8-bff1-4ae4-971c-9002f823ba0c/video:/ex_storage/video
|
||||
- /srv/dev-disk-by-uuid-8ad400b8-bff1-4ae4-971c-9002f823ba0c/repositories:/ex_storage/repositories
|
||||
- /srv/dev-disk-by-uuid-8ad400b8-bff1-4ae4-971c-9002f823ba0c/hwsw:/ex_storage/hwsw
|
||||
|
||||
|
||||
environment:
|
||||
- MYSQL_PASSWORD=password
|
||||
- MYSQL_DATABASE=nextcloud
|
||||
@@ -79,13 +87,22 @@ services:
|
||||
restart: always
|
||||
|
||||
cron:
|
||||
image: nextcloud:fpm-alpine
|
||||
build:
|
||||
context: ./nc-fpm
|
||||
args:
|
||||
UID: ${MUID}
|
||||
GID: ${MGID}
|
||||
restart: always
|
||||
volumes:
|
||||
- nchome:/var/www/html:z
|
||||
- ncdata:/var/www/html/data
|
||||
environment:
|
||||
- MYSQL_PASSWORD=password
|
||||
- MYSQL_DATABASE=nextcloud
|
||||
- MYSQL_USER=nextcloud
|
||||
- MYSQL_HOST=db
|
||||
- REDIS_HOST=redis
|
||||
entrypoint: /cron.sh
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
- nextcloud
|
||||
|
||||
|
||||
@@ -8,3 +8,6 @@ RUN usermod -u $UID -o www-data
|
||||
RUN apt update \
|
||||
&& apt -y install libmagickcore-6.q16-6-extra ffmpeg imagemagick ghostscript \
|
||||
&& apt clean
|
||||
|
||||
# Add custom cron job for previews
|
||||
RUN echo '*/15 * * * * php /var/www/html/occ preview:pre-generate' >> /var/spool/cron/crontabs/www-data
|
||||
|
||||
Reference in New Issue
Block a user