palworld-server-docker

palworld-server-docker

Docker容器快速部署Palworld专用服务器

这是一个用于部署Palworld专用服务器的Docker容器,支持多种操作系统和CPU架构。容器提供自动备份、更新、RCON等功能,可通过环境变量配置服务器参数。项目包含详细文档,并有社区支持。适合快速搭建和管理Palworld服务器。

Palworld服务器Docker游戏容器化Github开源项目

Palworld Dedicated Server Docker

Release Docker Pulls Docker Stars Image Size Discord

CodeFactor Release Linting Security

Docker Hub GHCR Artifact Hub

Chat with the community on Discord

[!TIP] Unsure how to get started? Check out this guide I wrote!

This is a Docker container to help you get started with hosting your own Palworld dedicated server.

This Docker container has been tested and will work on the following OS:

  • Linux (Ubuntu/Debian)
  • Windows 10,11
  • MacOS (including Apple Silicon M1/M2/M3).

This container has also been tested and will work on both x64 and ARM64 based CPU architecture.

[!IMPORTANT] Looking to host a server for Xbox players? Follow this guide here!

Sponsors

CompanyAbout
<!-- markdownlint-disable-line --><a href="https://indifferentbroccoli.com/palworld-server-hosting"><img src="https://github.com/thijsvanloef/palworld-server-docker/assets/58031337/f091b205-d6be-49fe-a508-4a23087023a1" width="150px" alt="Indifferent Broccoli" /></a><p align="center">indifferent broccoli (:|)</p>Thank you to our sponsor indifferent broccoli. If you decide to rent a Palworld server, rather than host yourself, try indifferent broccoli's Palword server hosting 2-day free trial

Massive shoutout to the following individual sponsors

<p align="left"><!-- markdownlint-disable-line --><!-- markdownlint-disable-next-line --> <!-- sponsors --><a href="https://github.com/AshishT112203"><img src="https://github.com/AshishT112203.png" width="50px" alt="AshishT112203" /></a>&nbsp;&nbsp;<a href="https://github.com/stoprx"><img src="https://github.com/stoprx.png" width="50px" alt="stoprx" /></a>&nbsp;&nbsp;<a href="https://github.com/indifferentbroccoli"><img src="https://github.com/indifferentbroccoli.png" width="50px" alt="indifferentbroccoli" /></a>&nbsp;&nbsp;<!-- sponsors --> </p>

Official Documentation

Documentation

Server Requirements

ResourceMinimumRecommended
CPU4 cores4+ cores
RAM16GBRecommend over 32GB for stable operation
Storage8GB20GB

How to use

Keep in mind that you'll need to change the environment variables.

Docker Compose

This repository includes an example docker-compose.yml file you can use to set up your server.

services: palworld: image: thijsvanloef/palworld-server-docker:latest restart: unless-stopped container_name: palworld-server stop_grace_period: 30s # Set to however long you are willing to wait for the container to gracefully stop ports: - 8211:8211/udp - 27015:27015/udp # - 8212:8212/tcp # Port for REST API if REST_API_ENABLED: true environment: PUID: 1000 PGID: 1000 PORT: 8211 # Optional but recommended PLAYERS: 16 # Optional but recommended SERVER_PASSWORD: "worldofpals" # Optional but recommended MULTITHREADING: true RCON_ENABLED: true RCON_PORT: 25575 TZ: "UTC" ADMIN_PASSWORD: "adminPasswordHere" COMMUNITY: false # Enable this if you want your server to show up in the community servers tab, USE WITH SERVER_PASSWORD! SERVER_NAME: "palworld-server-docker by Thijs van Loef" SERVER_DESCRIPTION: "palworld-server-docker by Thijs van Loef" ALLOW_CONNECT_PLATFORM: "Steam" # Defaults to "Steam" if not set, set this to "Xbox" if you want to host a server for Xbox players. CROSSPLAY BETWEEN XBOX-STEAM IS NOT YET SUPPORTED volumes: - ./palworld:/palworld/

As an alternative, you can copy the .env.example file to a new file called .env file. Modify it to your needs, check out the environment variables section to check the correct values. Modify your docker-compose.yml to this:

services: palworld: image: thijsvanloef/palworld-server-docker:latest restart: unless-stopped container_name: palworld-server stop_grace_period: 30s # Set to however long you are willing to wait for the container to gracefully stop ports: - 8211:8211/udp - 27015:27015/udp # - 8212:8212/tcp # Port for REST API if REST_API_ENABLED: true env_file: - .env volumes: - ./palworld:/palworld/

Docker Run

Change every <> to your own configuration

docker run -d \ --name palworld-server \ -p 8211:8211/udp \ -p 27015:27015/udp \ -v ./palworld:/palworld/ \ -e PUID=1000 \ -e PGID=1000 \ -e PORT=8211 \ -e PLAYERS=16 \ -e MULTITHREADING=true \ -e RCON_ENABLED=true \ -e RCON_PORT=25575 \ -e TZ=UTC \ -e ADMIN_PASSWORD="adminPasswordHere" \ -e SERVER_PASSWORD="worldofpals" \ -e COMMUNITY=false \ -e SERVER_NAME="palworld-server-docker by Thijs van Loef" \ -e SERVER_DESCRIPTION="palworld-server-docker by Thijs van Loef" \ -e ALLOW_CONNECT_PLATFORM="Steam" \ --restart unless-stopped \ --stop-timeout 30 \ thijsvanloef/palworld-server-docker:latest

As an alternative, you can copy the .env.example file to a new file called .env file. Modify it to your needs, check out the environment variables section to check the correct values. Change your docker run command to this:

docker run -d \ --name palworld-server \ -p 8211:8211/udp \ -p 27015:27015/udp \ -v ./palworld:/palworld/ \ --env-file .env \ --restart unless-stopped \ --stop-timeout 30 \ thijsvanloef/palworld-server-docker:latest

Kubernetes

All files you will need to deploy this container to kubernetes are located in the k8s folder.

Follow the steps in the README.md here to deploy it.

Running without root

This is only for advanced users

It is possible to run this container and override the default user which is root in this image.

Because you are specifiying the user and group PUID and PGID are ignored.

If you want to find your UID: id -u If you want to find your GID: id -g

You must set user to NUMBERICAL_UID:NUMBERICAL_GID

Below we assume your UID is 1000 and your GID is 1001

  • In docker run add --user 1000:1001 \ above the last line.
  • In docker compose add user: 1000:1001 above ports.

If you wish to run it with a different UID/GID than your own you will need to change the ownership of the directory that is being bind: chown UID:GID palworld/ or by changing the permissions for all other: chmod o=rwx palworld/

Using helm chart

The official helm chart can be found in a seperate repository, palworld-server-chart

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
  • PUID
  • PGID
VariableInfoDefault ValuesAllowed ValuesAdded in Version
TZTimezone used for time stamping backup serverUTCSee TZ Identifiers0.1.0
PLAYERS*Max amount of players that are able to join the server161-320.1.0
PORT*UDP port that the server will expose82111024-655350.1.0
PUID*The uid of the user the server should run as1000!00.6.0
PGID*The gid of the group the server should run as1000!00.6.0
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.falsetrue/false0.1.0
COMMUNITYWhether or not the server shows up in the community server browser (USE WITH SERVER_PASSWORD)falsetrue/false0.1.0
PUBLIC_IPYou 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.x0.1.0
PUBLIC_PORTYou 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.1024-655350.1.0
SERVER_NAMEA name for your server"string"0.1.0
SERVER_DESCRIPTIONYour server Description"string"0.1.0
SERVER_PASSWORDSecure your community server with a password"string"0.1.0
ADMIN_PASSWORDSecure administration access in the server with a password"string"0.4.0
UPDATE_ON_BOOT**Update/Install the server when the docker container starts (THIS HAS TO BE ENABLED THE FIRST TIME YOU RUN THE CONTAINER)truetrue/false0.3.0
RCON_ENABLED***Enable RCON for the Palworld servertruetrue/false0.1.0
RCON_PORTRCON port to connect to255751024-655350.1.0
REST_API_ENABLEDEnable REST API for the palworld serverfalsetrue/false0.35.0
REST_API_PORTREST API port to connect to82121024-655350.35.0
QUERY_PORTQuery port used to communicate with Steam servers270151024-655350.1.0
ALLOW_CONNECT_PLATFORMSpecify if you are hosting a dedicated server for Steam or Xbox playersSteamSteam/Xbox0.38.0
BACKUP_CRON_EXPRESSIONSetting affects frequency of automatic backups.0 0 * * *Needs a Cron-Expression - See Configuring Automatic Backups with Cron0.19.0
BACKUP_ENABLEDEnables automatic backupstruetrue/false0.19.0
USE_BACKUP_SAVE_DATAEnables native automatic backupstruetrue/false0.35.0
DELETE_OLD_BACKUPSDelete backups after a certain number of daysfalsetrue/false0.19.0
OLD_BACKUP_DAYSHow many days to keep backups30any positive integer0.19.0
AUTO_UPDATE_CRON_EXPRESSIONSetting affects frequency of automatic updates.0 * * * *Needs a Cron-Expression - See Configuring Automatic Backups with Cron0.20.0
AUTO_UPDATE_ENABLEDEnables automatic updatesfalsetrue/false0.20.0
AUTO_UPDATE_WARN_MINUTESHow long to wait to update the server, after the player were informed. (This will be ignored, if no Players are connected)30Integer0.20.0
AUTO_REBOOT_CRON_EXPRESSIONSetting affects frequency of automatic updates.0 0 * * *Needs a Cron-Expression - See Configuring Automatic Backups with Cron0.21.0
AUTO_REBOOT_ENABLEDEnables automatic rebootsfalsetrue/false0.21.0
AUTO_REBOOT_WARN_MINUTES

编辑推荐精选

蛙蛙写作

蛙蛙写作

AI小说写作助手,一站式润色、改写、扩写

蛙蛙写作—国内先进的AI写作平台,涵盖小说、学术、社交媒体等多场景。提供续写、改写、润色等功能,助力创作者高效优化写作流程。界面简洁,功能全面,适合各类写作者提升内容品质和工作效率。

AI辅助写作AI工具蛙蛙写作AI写作工具学术助手办公助手营销助手AI助手
Trae

Trae

字节跳动发布的AI编程神器IDE

Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。

AI工具TraeAI IDE协作生产力转型热门
问小白

问小白

全能AI智能助手,随时解答生活与工作的多样问题

问小白,由元石科技研发的AI智能助手,快速准确地解答各种生活和工作问题,包括但不限于搜索、规划和社交互动,帮助用户在日常生活中提高效率,轻松管理个人事务。

热门AI助手AI对话AI工具聊天机器人
Transly

Transly

实时语音翻译/同声传译工具

Transly是一个多场景的AI大语言模型驱动的同声传译、专业翻译助手,它拥有超精准的音频识别翻译能力,几乎零延迟的使用体验和支持多国语言可以让你带它走遍全球,无论你是留学生、商务人士、韩剧美剧爱好者,还是出国游玩、多国会议、跨国追星等等,都可以满足你所有需要同传的场景需求,线上线下通用,扫除语言障碍,让全世界的语言交流不再有国界。

讯飞智文

讯飞智文

一键生成PPT和Word,让学习生活更轻松

讯飞智文是一个利用 AI 技术的项目,能够帮助用户生成 PPT 以及各类文档。无论是商业领域的市场分析报告、年度目标制定,还是学生群体的职业生涯规划、实习避坑指南,亦或是活动策划、旅游攻略等内容,它都能提供支持,帮助用户精准表达,轻松呈现各种信息。

AI办公办公工具AI工具讯飞智文AI在线生成PPTAI撰写助手多语种文档生成AI自动配图热门
讯飞星火

讯飞星火

深度推理能力全新升级,全面对标OpenAI o1

科大讯飞的星火大模型,支持语言理解、知识问答和文本创作等多功能,适用于多种文件和业务场景,提升办公和日常生活的效率。讯飞星火是一个提供丰富智能服务的平台,涵盖科技资讯、图像创作、写作辅助、编程解答、科研文献解读等功能,能为不同需求的用户提供便捷高效的帮助,助力用户轻松获取信息、解决问题,满足多样化使用场景。

热门AI开发模型训练AI工具讯飞星火大模型智能问答内容创作多语种支持智慧生活
Spark-TTS

Spark-TTS

一种基于大语言模型的高效单流解耦语音令牌文本到语音合成模型

Spark-TTS 是一个基于 PyTorch 的开源文本到语音合成项目,由多个知名机构联合参与。该项目提供了高效的 LLM(大语言模型)驱动的语音合成方案,支持语音克隆和语音创建功能,可通过命令行界面(CLI)和 Web UI 两种方式使用。用户可以根据需求调整语音的性别、音高、速度等参数,生成高质量的语音。该项目适用于多种场景,如有声读物制作、智能语音助手开发等。

咔片PPT

咔片PPT

AI助力,做PPT更简单!

咔片是一款轻量化在线演示设计工具,借助 AI 技术,实现从内容生成到智能设计的一站式 PPT 制作服务。支持多种文档格式导入生成 PPT,提供海量模板、智能美化、素材替换等功能,适用于销售、教师、学生等各类人群,能高效制作出高品质 PPT,满足不同场景演示需求。

讯飞绘文

讯飞绘文

选题、配图、成文,一站式创作,让内容运营更高效

讯飞绘文,一个AI集成平台,支持写作、选题、配图、排版和发布。高效生成适用于各类媒体的定制内容,加速品牌传播,提升内容营销效果。

热门AI辅助写作AI工具讯飞绘文内容运营AI创作个性化文章多平台分发AI助手
材料星

材料星

专业的AI公文写作平台,公文写作神器

AI 材料星,专业的 AI 公文写作辅助平台,为体制内工作人员提供高效的公文写作解决方案。拥有海量公文文库、9 大核心 AI 功能,支持 30 + 文稿类型生成,助力快速完成领导讲话、工作总结、述职报告等材料,提升办公效率,是体制打工人的得力写作神器。

下拉加载更多