datarhei / restreamer

The Restreamer is a complete streaming server solution for self-hosting. It has a visually appealing user interface and no ongoing license costs. Upload your live stream to YouTube, Twitch, Facebook, Vimeo, or other streaming solutions like Wowza. Receive video data from OBS and publish it with the RTMP and SRT server.
https://docs.datarhei.com/restreamer/
Apache License 2.0
3.78k stars 438 forks source link

Can't change time zone on docker #589

Open JunioCalu opened 1 year ago

JunioCalu commented 1 year ago

Unable to change time zone using RS_TIMEZONE docker variable.

Command used:

docker run -ti --detach --name restreamer --privileged --env RS_TIMEZONE=America/Maceio --volume /opt/core/config:/core/config --volume /opt/core/data:/core/data --publish 8080:8080 --publish 8383:8181 --publish 1935:1935 --publish 1942:1936 --publish 6000:6000/udp --add-host=host.docker.internal:host-gateway --network=redeswag --restart unless-stopped datarhei/restreamer:latest

svenerbeck commented 1 year ago

Hello @JunioCalu, Thank you for reaching out with your observation.

While I'm not directly involved in building the Docker image, your point is well taken. We'll undoubtedly consider reviewing this aspect in one of our upcoming releases.

Here are a few things to keep in mind:

  1. Environment Variables: Not every Docker image will recognize or respond to each environment variable you set. It's crucial to ensure that RS_TIMEZONE is indeed a supported variable for the datarhei/restreamer Docker image.
  2. Base Image Configuration: Our base image, which utilizes datarhei/restreamer, may require additional tools or configurations to handle timezone changes using environment variables.
  3. Docker Daemon Time Zone: By default, Docker containers inherit the time zone from the Docker daemon. This, in turn, typically adopts the time zone of its host system. I'd recommend checking the time zone of your host system to see if any discrepancies or overrides are present.

While the Docker environment variable mechanism is a Docker feature, how the datarhei/restreamer image reacts to the RS_TIMEZONE variable is specific to that image, and we'll need to verify this on our end.

I appreciate your valuable feedback. It helps us improve and serve our users better.

Cheerio, Sven