From ad8e47fb4e00b92c1ebf3acf2d2e13b8c63a6818 Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Wed, 24 Jan 2024 16:20:26 -0500 Subject: [PATCH 1/2] Added timezone option --- Dockerfile | 3 ++- README.md | 1 + docker-compose.yml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5978229f7..69b72e612 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,8 @@ ENV PORT= \ UPDATE_ON_BOOT=true \ RCON_ENABLED=true \ RCON_PORT=25575 \ - QUERY_PORT=27015 + QUERY_PORT=27015 \ + TZ=UTC COPY ./scripts/* /home/steam/server/ RUN chmod +x /home/steam/server/init.sh /home/steam/server/start.sh /home/steam/server/backup.sh diff --git a/README.md b/README.md index b23efdaaf..80d7d2bbd 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,7 @@ It is highly recommended you set the following environment values before startin | Variable | Info | Default Values | Allowed Values | |------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------|----------------| +| TZ | Timezone used for time stamping backup server | UTC | See [TZ Identifiers](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#Time_Zone_abbreviations) | | PLAYERS* | Max amount of players that are able to join the server | 16 | 1-31 | | PORT* | UDP port that the server will expose | 8211 | 1024-65535 | | PUID* | The uid of the user the server should run as | 1000 | !0 | diff --git a/docker-compose.yml b/docker-compose.yml index 7dc71364a..2800f5758 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,6 +14,7 @@ services: - MULTITHREADING=true - RCON_ENABLED=true - RCON_PORT=25575 + - TZ=UTC - ADMIN_PASSWORD="adminPasswordHere" - COMMUNITY=false # Enable this if you want your server to show up in the community servers tab, USE WITH SERVER_PASSWORD! # Enable the environment variables below if you have COMMUNITY=true From 75a747a641d1268df63c50a5951956c3fd9fc015 Mon Sep 17 00:00:00 2001 From: Thijs van Loef <58031337+thijsvanloef@users.noreply.github.com> Date: Thu, 25 Jan 2024 09:02:20 +0100 Subject: [PATCH 2/2] Add TZ to examples in readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 80d7d2bbd..011f55415 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ services: - MULTITHREADING=true - RCON_ENABLED=true - RCON_PORT=25575 + - TZ=UTC - ADMIN_PASSWORD="adminPasswordHere" - COMMUNITY=false # Enable this if you want your server to show up in the community servers tab, USE WITH SERVER_PASSWORD! # Enable the environment variables below if you have COMMUNITY=true @@ -71,6 +72,7 @@ docker run -d \ -e MULTITHREADING=true \ -e RCON_ENABLED=true \ -e RCON_PORT=25575 \ + -e TZ=UTC \ -e ADMIN_PASSWORD="adminPasswordHere" \ -e COMMUNITY=false \ --restart unless-stopped \