Files
palworld-server-docker/README.md

87 lines
4.6 KiB
Markdown
Raw Normal View History

2024-01-19 14:58:51 +01:00
# Palworld server docker
2024-01-19 15:20:51 +01:00
![Release](https://img.shields.io/github/v/release/thijsvanloef/palworld-server-docker)
![Docker Pulls](https://img.shields.io/docker/pulls/thijsvanloef/palworld-server-docker)
![Docker Stars](https://img.shields.io/docker/stars/thijsvanloef/palworld-server-docker)
![Image Size](https://img.shields.io/docker/image-size/thijsvanloef/palworld-server-docker/latest)
2024-01-19 14:58:51 +01:00
[View on Docker Hub](https://hub.docker.com/repository/docker/thijsvanloef/palworld-server-docker)
This is a Dockerized version of the [Palworld](https://store.steampowered.com/app/1623730/Palworld/) dedicated server.
## How to use
Keep in mind that you'll need to change the [environment variables](##Environment-variables).
### Docker Compose
This repository includes an example [docker-compose.yml](example/docker-compose.yml) file you can use to setup your server.
```yml
services:
palworld:
image: thijsvanloef/palworld-server-docker
restart: unless-stopped
container_name: palworld-server
ports:
2024-01-19 15:07:14 +01:00
- 8211:8211/udp
- 27015:27015/udp
2024-01-19 14:58:51 +01:00
environment:
- PORT=8211
2024-01-19 14:58:51 +01:00
- PLAYERS=16
- MULTITHREADING=FALSE
volumes:
- /path/to/your/palworld/folder:/palworld/
```
### Docker Run
Change every <> to your own configuration
```bash
docker run -d \
--name palworld-server \
-p 8211:8211/udp \
-p 27015:27015/udp \
-v ./<palworld-folder>:/palworld/ \
-e PLAYERS=16 \
-e PORT=8211 \
--restart unless-stopped \
thijsvanloef/palworld-server-docker
```
### Environment variables
You can use the following values to change the settings of the server on boot.
It is highly recommended you set the following environment values before starting the server:
* PLAYERS
* PORT
* MULTITHREADING
2024-01-19 18:22:08 +01:00
| Variable | Info | Default Values | Allowed Values |
|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------|----------------|
| 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 |
| MULTITHREADING** | Improves performance in multi-threaded CPU environments. It is effective up to a maximum of about 4 threads, and allocating more than this number of threads does not make much sense. | false | true/false |
| COMMUNITY | Whether or not the server shows up in the community server browser (USE WITH SERVER_PASSWORD) | false | true/false |
| PUBLIC_IP | You can manually specify the global IP address of the network on which the server running.If not specified, it will be detected automatically. If it does not work well, try manual configuration. | | x.x.x.x |
| PUBLIC_PORT | You can manually specify the port number of the network on which the server running.If not specified, it will be detected automatically. If it does not work well, try manual configuration. | | x.x.x.x |
| SERVER_PASSWORD | Secure your community server with a password | | string |
2024-01-19 14:58:51 +01:00
*highly recommended to set
** Make sure you know what you are doing when running this this option enabled
2024-01-19 15:16:00 +01:00
### Game Ports
| Port | Info | note |
|-------|------------------|------------------------------------------------|
| 8211 | Game Port (UDP) | |
| 27015 | Query Port (UDP) | You are not able to change this port as of now |
2024-01-19 14:58:51 +01:00
## Reporting Issues/Feature Requests
Issues/Feature requests can be submitted by using [this link](https://github.com/thijsvanloef/palworld-server-docker/issues/new/choose).