vwout / docker-openluup

Dockerized openLuup environment with AltUI
https://hub.docker.com/r/vwout/openluup/
Apache License 2.0
3 stars 2 forks source link

Timezone sync? #8

Closed perhusaas closed 3 years ago

perhusaas commented 3 years ago

How do i get timezone sync with this container? (alpine) I tried to bind /etc/localtime with no luck..

I see that people install tzdata in the dockerfile, I could do that, but i'd prefer using this image if possible..

vwout commented 3 years ago

The package tzdata is already available in the [alpine[(https://github.com/vwout/docker-openluup/blob/master/openluup-alpine/Dockerfile) image.

To set your timezone, configure TZ, one of the supported environment variables. You can e.g. add this to your docker-compose file:

    environment:
      - TZ=Europe/Amsterdam

Alternatively, you can set it as docker command line argument and you can also use UTC offsets.

perhusaas commented 3 years ago

Perfect. thanks!