From e29f9ed02f08e632de8ea939abd0b7c4bd867dd4 Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Wed, 24 Jan 2024 20:33:34 -0500 Subject: [PATCH 1/3] Fixed timezone --- Dockerfile | 2 +- README.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2efdf8f..b86c98e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,7 @@ RUN curl -fsSLO "$SUPERCRONIC_URL" \ USER steam -ENV TIMEZONE=Europe/Berlin \ +ENV TZ=UTC \ DEBIAN_FRONTEND=noninteractive \ PUID=0 \ PGID=0 \ diff --git a/README.md b/README.md index 36000ea..f378024 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ This includes a Palworld Dedicated Server based on Linux and Docker. | ADMIN_PASSWORD | Admin password of the server | adminPasswordHere | string | | BACKUP_ENABLED | Backup function, creates backups in your `game` directory | true | false/true | | BACKUP_CRON_EXPRESSION | Needs a Cron-Expression - See https://github.com/aptible/supercronic#crontab-format or https://crontab-generator.org/ | 0 * * * * (meaning every hour) | Cron-Expression | +| TZ | Timezone used for time stamping server backups | UTC | See [TZ Identifiers](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#Time_Zone_abbreviations) | Look at https://tech.palworldgame.com/optimize-game-balance for more information and config-settings in `game/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini` From c4c1ba9dcea4841aa6b788dbb2027746f2946f78 Mon Sep 17 00:00:00 2001 From: "Carlos M. Martinez" Date: Wed, 24 Jan 2024 20:35:17 -0500 Subject: [PATCH 2/3] Added TZ to docker compose --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index f378024..8ea00a8 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,7 @@ services: - ADMIN_PASSWORD=adminPasswordHere - BACKUP_ENABLED=true - BACKUP_CRON_EXPRESSION=0 * * * * + - TZ=UTC volumes: - ./game:/palworld ``` @@ -125,6 +126,7 @@ services: - ADMIN_PASSWORD=adminPasswordHere - BACKUP_ENABLED=true - BACKUP_CRON_EXPRESSION=0 * * * * + - TZ=UTC volumes: - ./game:/palworld From 7a05efe9b26980a0ac6aa022bb068a3dd11f51cf Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt <2270806+jammsen@users.noreply.github.com> Date: Thu, 25 Jan 2024 11:22:52 +0100 Subject: [PATCH 3/3] Changed file format-endings, updated and extended documentation, updated Dockerfile --- Dockerfile | 4 ++-- README.md | 50 ++++++++++++++++++++++++++------------------------ 2 files changed, 28 insertions(+), 26 deletions(-) diff --git a/Dockerfile b/Dockerfile index b86c98e..d0a53b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,10 +22,10 @@ RUN curl -fsSLO "$SUPERCRONIC_URL" \ USER steam -ENV TZ=UTC \ - DEBIAN_FRONTEND=noninteractive \ +ENV DEBIAN_FRONTEND=noninteractive \ PUID=0 \ PGID=0 \ + TZ=Europe/Berlin \ ALWAYS_UPDATE_ON_START=true \ MAX_PLAYERS=32 \ MULTITHREAD_ENABLED=true \ diff --git a/README.md b/README.md index 8ea00a8..1265807 100644 --- a/README.md +++ b/README.md @@ -33,22 +33,22 @@ This includes a Palworld Dedicated Server based on Linux and Docker. 5. After first start, stop the server, setup your config at `game/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini` and start it again ## Environment-Variables -| Variable | Description | Default Value | Allowed Value | -| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ | --------------- | -| ALWAYS_UPDATE_ON_START | Updates the server on startup | true | false/true | -| MAX_PLAYERS | Maximum amout of players | 32 | 1-32 | -| MULTITHREAD_ENABLED | Sets options for "Improved multi-threaded CPU performance" | true | false/true | -| COMMUNITY_SERVER | Sets the server to a "Community-Server". If true, the server will appear in the Community-Serverlist. Needs PUBLIC_IP and PUBLIC_PORT | true | false/true | -| RCON_ENABLED | RCON function - use ADMIN_PASSWORD to login after enabling it - Will be listening on port 25575 inside the container | true | false/true | -| PUBLIC_IP | Public ip, auto-detect if not specified, see COMMUNITY_SERVER | 10.0.0.1 | ip address | -| PUBLIC_PORT | Public port, auto-detect if not specified, see COMMUNITY_SERVER | 8211 | 1024-65535 | -| SERVER_NAME | Name of the server | jammsen-docker-generated-###RANDOM### | string | -| SERVER_DESCRIPTION | Description of the server | Palworld-Dedicated-Server running in Docker by jammsen | string | -| SERVER_PASSWORD | Password of the server | serverPasswordHere | string | -| ADMIN_PASSWORD | Admin password of the server | adminPasswordHere | string | -| BACKUP_ENABLED | Backup function, creates backups in your `game` directory | true | false/true | -| BACKUP_CRON_EXPRESSION | Needs a Cron-Expression - See https://github.com/aptible/supercronic#crontab-format or https://crontab-generator.org/ | 0 * * * * (meaning every hour) | Cron-Expression | -| TZ | Timezone used for time stamping server backups | UTC | See [TZ Identifiers](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#Time_Zone_abbreviations) | +| Variable | Description | Default Value | Allowed Value | +| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------- | +| TZ | Timezone used for time stamping server backups | Europe/Berlin | See [TZ identifiers](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#Time_Zone_abbreviations) | +| ALWAYS_UPDATE_ON_START | Updates the server on startup | true | false/true | +| MAX_PLAYERS | Maximum amout of players | 32 | 1-32 | +| MULTITHREAD_ENABLED | Sets options for "Improved multi-threaded CPU performance" | true | false/true | +| COMMUNITY_SERVER | Sets the server to a "Community-Server". If true, the server will appear in the Community-Serverlist. Needs PUBLIC_IP and PUBLIC_PORT | true | false/true | +| RCON_ENABLED | RCON function - use ADMIN_PASSWORD to login after enabling it - Will be listening on port 25575 inside the container | true | false/true | +| PUBLIC_IP | Public ip, auto-detect if not specified, see COMMUNITY_SERVER | 10.0.0.1 | ip address | +| PUBLIC_PORT | Public port, auto-detect if not specified, see COMMUNITY_SERVER | 8211 | 1024-65535 | +| SERVER_NAME | Name of the server | jammsen-docker-generated-###RANDOM### | string | +| SERVER_DESCRIPTION | Description of the server | Palworld-Dedicated-Server running in Docker by jammsen | string | +| SERVER_PASSWORD | Password of the server | serverPasswordHere | string | +| ADMIN_PASSWORD | Admin password of the server | adminPasswordHere | string | +| BACKUP_ENABLED | Backup function, creates backups in your `game` directory | true | false/true | +| BACKUP_CRON_EXPRESSION | Needs a Cron-Expression - See https://github.com/aptible/supercronic#crontab-format or https://crontab-generator.org/ | 0 * * * * (meaning every hour) | Cron-Expression | Look at https://tech.palworldgame.com/optimize-game-balance for more information and config-settings in `game/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini` @@ -65,15 +65,16 @@ services: restart: always network_mode: bridge ports: - - target: 8211 # gamerserver port inside of the container - published: 8211 # gamerserver port on your host + - target: 8211 # Gamerserver port inside of the container + published: 8211 # Gamerserver port on your host protocol: udp mode: host - - target: 25575 # rcon port inside of the container - published: 25575 # rcon port on your host + - target: 25575 # RCon port inside of the container + published: 25575 # RCon port on your host protocol: tcp mode: host environment: + - TZ=Europe/Berlin # Change this for logging and backup, see "Environment-Variables" - ALWAYS_UPDATE_ON_START=true - MAX_PLAYERS=32 - MULTITHREAD_ENABLED=true @@ -103,15 +104,16 @@ services: restart: always network_mode: bridge ports: - - target: 8211 # gamerserver port inside of the container - published: 8211 # gamerserver port on your host + - target: 8211 # Gamerserver port inside of the container + published: 8211 # Gamerserver port on your host protocol: udp mode: host - - target: 25575 # rcon port inside of the container - published: 25575 # rcon port on your host + - target: 25575 # RCon port inside of the container + published: 25575 # RCon port on your host protocol: tcp mode: host environment: + - TZ=Europe/Berlin # Change this for logging and backup, see "Environment-Variables" - ALWAYS_UPDATE_ON_START=true - MAX_PLAYERS=32 - MULTITHREAD_ENABLED=true