JetBrains / teamcity-docker-server

TeamCity server docker image sources
https://hub.docker.com/r/jetbrains/teamcity-server/
Apache License 2.0
72 stars 52 forks source link

timezone question #18

Closed andrewsav-bt closed 6 years ago

andrewsav-bt commented 6 years ago

How do I set the correct timezone for Teamcity Server running in a docker container?

dtretyakov commented 6 years ago

@andrewsav-datacom, depending on windows/linux docker images way to set timezone differs.

For linux containers you could set TZ environment variable while starting container like that:

docker run -it --name teamcity-server-instance   \
       -e TEAMCITY_SERVER_MEM_OPTS="-Xmx2g -XX:MaxPermSize=270m -XX:ReservedCodeCacheSize=350m" \
       -e TZ="Europe/Moscow" \
       -v <path to data directory>:/data/teamcity_server/datadir  \
       -v <path to log directory>:/opt/teamcity/logs   \
       -p <port on host>:8111 \
       jetbrains/teamcity-server