Skip to content

Commit

Permalink
Merge branch 'Dashboy1998-timezone'
Browse files Browse the repository at this point in the history
  • Loading branch information
jammsen committed Jan 25, 2024
2 parents 75b897e + 7a05efe commit 7f74544
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 25 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ RUN curl -fsSLO "$SUPERCRONIC_URL" \

USER steam

ENV TIMEZONE=Europe/Berlin \
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 \
Expand Down
51 changes: 28 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +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 |
| 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`

Expand All @@ -64,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
Expand All @@ -87,6 +89,7 @@ services:
- ADMIN_PASSWORD=adminPasswordHere
- BACKUP_ENABLED=true
- BACKUP_CRON_EXPRESSION=0 * * * *
- TZ=UTC
volumes:
- ./game:/palworld
```
Expand All @@ -101,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
Expand All @@ -124,6 +128,7 @@ services:
- ADMIN_PASSWORD=adminPasswordHere
- BACKUP_ENABLED=true
- BACKUP_CRON_EXPRESSION=0 * * * *
- TZ=UTC
volumes:
- ./game:/palworld

Expand Down

0 comments on commit 7f74544

Please sign in to comment.