Change cron job interval

I have my nextcloud and cron installed through docker. The cron call is default, every 5 minutes. Is there any way I can increase this interval so that it is called every 30 minutes, for example?

Yes, edit the cronjobs and adjust the interval. But we can’t tell you how to do this as we don’t know which Docker image you are using.

my compose:

services:
  cron:
    image: nextcloud:latest
    restart: always
    volumes:
      - /srv/dev-disk-by-uuid-4d956ca1-ebeb-43bf-9563-6b4bb934082f/BR-DADOS/Aplications/Nextcloud/app:/var/www/html
    entrypoint: /cron.sh
    depends_on:
      - db
      - app

  db:
    image: mariadb:latest
    restart: always
    command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
    volumes:
      - /srv/dev-disk-by-uuid-4d956ca1-ebeb-43bf-9563-6b4bb934082f/BR-DADOS/Aplications/Nextcloud/db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=xxxx
      - MYSQL_PASSWORD=xxx
      - MYSQL_DATABASE=xxx
      - MYSQL_USER=xxx
      - MARIADB_AUTO_UPGRADE="1"

  app:
    image: nextcloud:latest
    restart: always
    ports:
      - 8080:80
    links:
      - db
      - redis
    depends_on:
      - db
      - redis
    volumes:
      - /srv/dev-disk-by-uuid-4d956ca1-ebeb-43bf-9563-6b4bb934082f/BR-DADOS/Aplications/Nextcloud/app:/var/www/html
    environment:
      - MYSQL_PASSWORD=xxx
      - MYSQL_DATABASE=xxxx
      - MYSQL_USER=xxx
      - MYSQL_HOST=xxxx
      - REDIS_HOST=xxx
      - REDIS_PORT=xxx
      - 'REDIS_HOST_PASSWORD=xxxx
 
  redis:
    image: redis:latest
    restart: always
    command: redis-server --requirepass xxxx

I’m new to this subject, maybe now with compose you can help me, thank you :slight_smile:

The same question was also asked on GitHub (by someone else), in the answers there are a few solution ideas. Maybe this will help you.

oh yes, thank you brother

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.