Skip to content

Wat00/palworld-server-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Palworld Server on Docker

Features

  • Sandboxed environment for higher security.
  • Separate stages for updating and restarting a server, so it is easier to backup files before an update.
  • Micro-service architecture.
  • Low customization.

Acquiring a Docker Compose YAML

Download the docker-compose.yml and dependencies from GitHub:

git clone https://github.com/Wat00/palworld-server-docker.git .

The YAML is in the palword folder:

cd palworld

QuickStart

To run a server with default settings and listening on port 8211:

docker compose up

Step-by-step guide

1. Installation

1.1. Downloading and installing the server

docker compose up steamcmd

1.2. Reconfiguring command-line arguments

To change command-line arguments (i.e. enable community server), edit the .env file COMMAND variable.

For a full list of arguments, see Configure the server. If the -port argument is used, then the .env file PALSERVER_PORT variable should be set to the same value.

1.3. Starting the server for the first time

docker compose up -d --no-deps palserver

1.4. Viewing the server logs

docker compose logs palserver

1.5. Changing the server configuration

1.5.1. Retrieve the default configuration file:

docker compose cp palserver:/home/steam/Steam/steamapps/common/PalServer/DefaultPalWorldSettings.ini PalWorldSettings.ini

1.5.2. Edit the contents of the PalWorldSettings.ini file (see Configuration file). If the AdminPassword argument is changed, then the .env file ADMIN_PASSWORD variable should be set to the same value. Also, if the RCONPort argument is used, then the .env file RCON_PORT variable should be set to the same value.

1.5.3. Copy the edited file to the container:

docker compose cp PalWorldSettings.ini palserver:/home/steam/Steam/steamapps/common/PalServer/Pal/Saved/Config/LinuxServer/

Changes should take effect on the next server restart.

1.6. Restarting the server

docker compose restart palserver

2. Maintenance

2.1. Saving the world data

RCON needs to be enabled in step 1.5.2 with the RCONEnabled=True argument.

2.1.1. Non-interactively
docker compose run --rm rcon Save
2.1.2. Interactively
docker compose run --rm rcon

Write Save and :q:

Waiting commands for palserver:25575 (or type :q to exit)
> Save
Complete Save
> :q

For a full list of commands, see Commands.

2.2. Cleanly shutting down the server

RCON needs to be enabled.

docker compose up doexit && docker compose wait palserver

2.3. Force stopping the server

docker compose stop

2.4. Making a backup

Docker tools which make backups of volumes can be used.

The server installation is inside the palworld_palserver volume.

2.5. Updating the server

docker compose up steamcmd

2.6. Starting the server

docker compose restart palserver

License

MIT

Links

Docker Docs

GitHub

Palworld tech guide

RCON client for executing queries on game server.

SteamCMD - Valve Developer Community

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published