jammsen / docker-palworld-dedicated-server

Docker container to easily provision and manage Palworld Dedicated Server
https://hub.docker.com/r/jammsen/palworld-dedicated-server
MIT License
907 stars 157 forks source link

[Feature Request] 希望添加一个环境变量设置不改变容器内的PalWorldSettings.ini Hope to add an environment variable setting that does not change the PalWorldSettings.ini inside the container #95

Closed xy3xy3 closed 7 months ago

xy3xy3 commented 7 months ago

Have you read the Important information text above

Describe the feature

I hope to add an environment variable setting that does not change the PalWorldSettings.ini inside the container. I prefer to make modifications on my own in the mounted directory, rather than modifying settings through Docker's environment variables

Additional information

Final checks

sirrkitt commented 7 months ago

In Podman, but I think this works in Docker, too, you can just copy the config file somewhere, make your edits, and then mount it into the container as read-only. On this container specifically, it just complains about not being able to edit the config and then continues and loads it anyway.

This is the option I use for my specific setting:

-v /srv/services/palworld/config/PalWorldSettings.ini:/palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini:ro

jammsen commented 7 months ago

Hey @xy3xy3 thanks for the feature request. When i understand you correctly you want me to add a "dumb/manual" mode right? Other people kinda refered to some things and asked this question many times but never got a clear answer.

The solution i offer right now is just the "Docker-Best-Practice" way and kinda the "12 Factor App" way, BUT that doesnt mean we cant support both, but nobody wanted that really and therefore no testers were available for this type of soltuion.

That is, IF i understand your request even correctly.

@sirrkitt - I wouldnt use a "hack" to solve a problem ... most of the time the problems get bigger and sometimes out of control, so please dont give thoose type of recommendations, before even asking me if im willing to not change that. Because i would be willing .... as i already wrote 😄

jammsen commented 7 months ago

This feature was added, see readme. You need for the SERVER_SETTINGS_MODE the manual mode.

Im closing this issue as resolved, feel free to reach out again if you need help.

If you like this project, please consider giving this repo and the docker-hub-repo a Star.