diff --git a/nextcloud/crontab b/nextcloud/crontab old mode 100644 new mode 100755 index 0d1745c..a8885e2 --- a/nextcloud/crontab +++ b/nextcloud/crontab @@ -1,4 +1,3 @@ */5 * * * * php -f /var/www/html/cron.php -1,11,21,31,41,51 * * * * php -f /var/www/html/occ files:cleanup -2,12,22,32,42,52 * * * * php -f /var/www/html/occ files:scan --all -#3,13,23,33,43,53 * * * * php -f /var/www/html/occ preview:pre-generate + + diff --git a/nextcloud/docker-compose.yaml b/nextcloud/docker-compose.yaml index 8b8b529..2c3a037 100644 --- a/nextcloud/docker-compose.yaml +++ b/nextcloud/docker-compose.yaml @@ -57,7 +57,12 @@ services: volumes: - ${VOLUMES_PATH}/nextcloud_html:/var/www/html - ${VOLUMES_PATH}/nextcloud_data:/var/www/html/data - - $PWD/crontab:/var/spool/cron/crontabs/www-data:ro +# If I mount my crontab into the container crond is not working any more :( +# docker log should print 11110001 lines +# https://github.com/nextcloud/docker/issues/1775 +# https://github.com/nextcloud/docker/issues/1695 +# build own cron image? +# - $PWD/crontab:/var/spool/cron/crontabs/www-data entrypoint: /cron.sh depends_on: - db @@ -115,11 +120,12 @@ services: redis: - image: redis:alpine + image: redis restart: unless-stopped command: redis-server --requirepass ${REDIS_HOST_PASSWORD} networks: - nextcloud + - monitoring volumes: - ${VOLUMES_PATH}/nextcloud_redis:/data labels: @@ -177,6 +183,12 @@ services: - LETS_ENCRYPT_ENABLED=false - EXPORT_URL=http://drawio-export:8000/ restart: unless-stopped + healthcheck: + test: curl -f http://localhost:8080 || exit 1 + interval: 1m30s + timeout: 10s + retries: 5 + start_period: 20s labels: - "traefik.enable=true" - "traefik.http.routers.drawio.rule=Host(`drawio.${DOMAIN}`)" @@ -191,3 +203,5 @@ networks: external: true nextcloud: mariadb: + monitoring: + external: true