Skip to content
Snippets Groups Projects
Commit de8077a1 authored by Amir Zarrinkafsh's avatar Amir Zarrinkafsh Committed by Richard van der Hoff
Browse files

Add ability to set timezone for Docker container (#5383)


Signed-off-by: default avatarAmir Zarrinkafsh <nightah@me.com>
parent 948488e1
No related branches found
No related tags found
No related merge requests found
Add ability to change Docker containers [timezone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) with the `TZ` variable.
...@@ -66,6 +66,7 @@ RUN apk add --no-cache --virtual .runtime_deps \ ...@@ -66,6 +66,7 @@ RUN apk add --no-cache --virtual .runtime_deps \
libpq \ libpq \
zlib \ zlib \
su-exec \ su-exec \
tzdata \
xmlsec xmlsec
COPY --from=builder /install /usr/local COPY --from=builder /install /usr/local
......
...@@ -63,7 +63,6 @@ The following environment variables are supported in `generate` mode: ...@@ -63,7 +63,6 @@ The following environment variables are supported in `generate` mode:
* `UID`, `GID`: the user id and group id to use for creating the data * `UID`, `GID`: the user id and group id to use for creating the data
directories. Defaults to `991`, `991`. directories. Defaults to `991`, `991`.
## Running synapse ## Running synapse
Once you have a valid configuration file, you can start synapse as follows: Once you have a valid configuration file, you can start synapse as follows:
...@@ -91,6 +90,7 @@ The following environment variables are supported in run mode: ...@@ -91,6 +90,7 @@ The following environment variables are supported in run mode:
* `SYNAPSE_CONFIG_PATH`: path to the config file. Defaults to * `SYNAPSE_CONFIG_PATH`: path to the config file. Defaults to
`<SYNAPSE_CONFIG_DIR>/homeserver.yaml`. `<SYNAPSE_CONFIG_DIR>/homeserver.yaml`.
* `UID`, `GID`: the user and group id to run Synapse as. Defaults to `991`, `991`. * `UID`, `GID`: the user and group id to run Synapse as. Defaults to `991`, `991`.
* `TZ`: the [timezone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) the container will run with. Defaults to `UTC`.
## TLS support ## TLS support
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment