Questions about official mariadb-cron-redis fpm Docker image : localtime, cron, network

Hi,

I have a few questions about the docker-compose.yml file before trying this image : https://github.com/nextcloud/docker/tree/master/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/fpm

  • I see a lot of people in this forum and elsewhere adding this volume in containers

     - /etc/localtime:/etc/localtime:ro
    

What is it for, is this really useful and if yes why this is not mentioned in the official docker-compose.yml file ?

  • In the official docker-compose.yml file there is the following container

    cron:
      image: nextcloud:fpm-alpine
      restart: always
      volumes:
        - nextcloud:/var/www/html
      entrypoint: /cron.sh
      depends_on:
        - db
        - redis
    

What is the purpose of this container and how to use it ?

  • There are 2 networks mentioned in the official docker-compose.yml file

    - proxy-tier
    - default
    

Should I declare those networks before using the image ? And how ?

Thanks for your help.

Hi, consider the cron service describe in these docker-compose examples as a new entry point. The cron.sh script just starts the cron daemon. It’s just a way of doing it.

Are the any known issues with the cron.sh entry point in 17? It does not seem like it runs. I keep seeing notifications that it has been hours since the last cron ran, even though I do have the cron container as shown above, with the correct entry point.