diff options
author | 2023-08-01 14:47:53 +0200 | |
---|---|---|
committer | 2023-08-01 14:47:53 +0200 | |
commit | 9bd03e122e9c0e9c4dc3c4683b834c4a3bd673ea (patch) | |
tree | a9c989bdfdf1c71d74c054c5d066f654e847bec9 /docs/getting_started | |
parent | Revert "[feature] Configurable timezone in containers (#2046)" (#2048) (diff) | |
download | gotosocial-9bd03e122e9c0e9c4dc3c4683b834c4a3bd673ea.tar.xz |
[feature] Set timezone in Docker using TZ env variable (#2050)
Diffstat (limited to 'docs/getting_started')
-rw-r--r-- | docs/getting_started/installation/container.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/getting_started/installation/container.md b/docs/getting_started/installation/container.md index 9fd70485b..25e634607 100644 --- a/docs/getting_started/installation/container.md +++ b/docs/getting_started/installation/container.md @@ -51,6 +51,17 @@ If desired, update the GoToSocial Docker image tag to the version of GtS you wan Change the `GTS_HOST` environment variable to the domain you are running GoToSocial on. +### Server Timezone (optional but recommended) + +To ensure that your GoToSocial server displays the correct time on posts and in logs, you can set the timezone of the server by editing the `TZ` environment variable. + +1. Remove the `#` before `TZ: UTC` in the environment section. +2. Change the `UTC` part to your timezone identifier. For a list of these identifiers, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. + +For example, if you are running your server in Minsk, you would set `TZ: Europe/Minsk`, Japan would be `TZ: Japan`, Dubai would be `TZ: Asia/Dubai`, etc. + +If you don't set this, the default `UTC` will be used. + ### User (optional / probably not necessary) By default, Dockerized GoToSocial runs with Linux user/group `1000:1000`, which is fine in most cases. If you want to run as a different user/group, you should change the `user` field in the docker-compose.yaml accordingly. |