My docker-compose file has some running docker files to create my containers. I don't want the docker files to set the timezones.
I have a docker-compose.override.yml file to make the local changes. One of my containers seems to not pull the host time zone and that is causing problems for me. Now, I want to enforce timezones on all my containers. In my Dockerfiles right now I am doing:
ENV TZ=Canada/Alex RUN ln -snf /user/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
How can I replicate this command for docker-compose syntax?