docker-palworld-dedicated-server: ENV variables are ignored, and the game is starting with default config.
Have you read the Important information text above
- Yes i did
Current behavior
The env variables in my docker compose is being ignored, and the game is set up using the default config. I am running this on ubuntu server 22.04, with portainer.
How I know that it gets ignored is:
- I can enter the game without a password.
- When I type ingame /AdminPassword test, the game tells me that there’s no admin password set.
- I can see in the ubuntu server htop that this is using all 4 cores, while I want to run this on 1 core.
- /dockerdata/palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini exists, but it is empty.
This is my docker compose:
version: '3.9'
services:
palworld-dedicated-server:
build: .
container_name: palworld-dedicated-server
image: jammsen/palworld-dedicated-server:latest
restart: unless-stopped
network_mode: bridge
ports:
- target: 8211
published: 8211
protocol: udp
mode: host
environment:
- ALWAYS_UPDATE_ON_START=true
- MAX_PLAYERS=16
- MULTITHREAD_ENABLED=false
- COMMUNITY_SERVER=false
- PUBLIC_PORT=8211
- SERVER_NAME="RER"
- SERVER_DESCRIPTION="Palworld Dedicated Server"
- SERVER_PASSWORD="112211"
- ADMIN_PASSWORD="test"
volumes:
- /dockerdata/palworld:/palworld
Desired behavior
That the server is picking up the env variables.
Links to screenshots
.ini file is empty:
To Reproduce
Steps to reproduce the behavior:
- Go to portainer
- Click on create new stack from stacks
- Scroll down to click on deploy stack
- Enter the game, and see that your env variables are ignored
Software setup
- OS: Ubuntu server 22.04
- Docker: 25.0.0
- Portainer: 19.3
Hardware setup
- vCPU: i5-6500 4 core
- RAM: 16gb
- Disk: SSD 256gb
Additional context
No response
About this issue
- Original URL
- State: closed
- Created 5 months ago
- Comments: 26 (9 by maintainers)
我找到一个项目可以自动生成config github: https://github.com/DysonCheng/PalWorldSettingGenerator web: https://dysoncheng.github.io/PalWorldSettingGenerator/setting.html 我昨天生成 config.ini 以后删掉了 ServerPassword 字段(因为我没有设置密码,他配置文件中是这样的 ServerPassword=“”)以后就成功应用配置了 可以考虑用这个试试