- 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.
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
To run a server with default settings and listening on port 8211
:
docker compose up
docker compose up steamcmd
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.
docker compose up -d --no-deps palserver
docker compose logs palserver
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.
docker compose restart palserver
RCON needs to be enabled in step 1.5.2 with the RCONEnabled=True
argument.
docker compose run --rm rcon Save
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.
RCON needs to be enabled.
docker compose up doexit && docker compose wait palserver
docker compose stop
Docker tools which make backups of volumes can be used.
The server installation is inside the palworld_palserver
volume.
docker compose up steamcmd
docker compose restart palserver