title: Cronjob with docker-compose
body: <p>I want to schedule a job in a docker container.
  First of all after looking around i could stablish the container time zone correctly. When i use the command 'date' inside the terminal, it shows the hour of my city and country, but the cronjob works with the time zone that was especified by default in the container. I readed that it's necesary to tell cron, that the time zone has changed. I tried and environment variable TZ_CRON but it didnt work.I also restarted the cron service inside the container but it continued working in the same way.</p>
  <p>I base my code in this repo
  <a href="https://github.com/senorihl/docker-compose-cronjob" rel="nofollow noreferrer">https://github.com/senorihl/docker-compose-cronjob</a>
  Then i sync the timezone with the command:</p>
  <pre><code>environment:
        - TZ=America/Bogota
      command: &gt;
        sh -c &quot;ln -snf /usr/share/zoneinfo/$TZ /etc/localtime &amp;&amp; 
        echo $TZ &gt; /etc/timezone&quot;
      entrypoint: sh /app/crontab.sh
  </code></pre>
  <p>Can you please help me with this?</p>