mirror of
https://github.com/YuzuZensai/palworld-server-docker.git
synced 2026-01-06 04:32:43 +00:00
Added description for server
This commit is contained in:
committed by
Thijs van Loef
parent
af15e82aa9
commit
8b34e13e8a
@@ -27,7 +27,8 @@ ENV PORT= \
|
||||
RCON_ENABLED=true \
|
||||
RCON_PORT=25575 \
|
||||
QUERY_PORT=27015 \
|
||||
TZ=UTC
|
||||
TZ=UTC \
|
||||
SERVER_DESCRIPTION=
|
||||
|
||||
COPY ./scripts/* /home/steam/server/
|
||||
RUN chmod +x /home/steam/server/init.sh /home/steam/server/start.sh /home/steam/server/backup.sh && \
|
||||
|
||||
@@ -123,9 +123,10 @@ It is highly recommended you set the following environment values before startin
|
||||
| PGID* | The gid of the group the server should run as | 1000 | !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. | 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. | | 1024-65535 |
|
||||
| SERVER_NAME | A name for your server | | "string" |
|
||||
| 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. | | 1024-65535 |
|
||||
| SERVER_NAME | A name for your community server | | "string" |
|
||||
| SERVER_DESCRIPTION | A description for your server | | "string"
|
||||
| SERVER_PASSWORD | Secure your community server with a password | | "string" |
|
||||
| ADMIN_PASSWORD | Secure administration access in the server with a password | | "string" |
|
||||
| UPDATE_ON_BOOT** | Update/Install the server when the docker container starts (THIS HAS TO BE ENABLED THE FIRST TIME YOU RUN THE CONTAINER) | true | true/false |
|
||||
|
||||
@@ -18,6 +18,8 @@ services:
|
||||
- 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!
|
||||
# Enable the environment variables below if you have COMMUNITY=true
|
||||
- SERVER_NAME="World of Pals"
|
||||
- SERVER_DESCRIPTION=""
|
||||
volumes:
|
||||
- ./palworld:/palworld/
|
||||
|
||||
@@ -14,6 +14,7 @@ data:
|
||||
TZ: UTC
|
||||
COMMUNITY: "false" # Enable this if you want your server to show up in the community servers tab, USE WITH SERVER_PASSWORD!
|
||||
SERVER_NAME: "World of Pals"
|
||||
SERVER_DESCRIPTION: ""
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
|
||||
@@ -26,6 +26,10 @@ if [ -n "${SERVER_NAME}" ]; then
|
||||
STARTCOMMAND+=("-servername=${SERVER_NAME}")
|
||||
fi
|
||||
|
||||
if [ -n "${SERVER_DESCRIPTION}" ]; then
|
||||
STARTCOMMAND="${STARTCOMMAND} -serverdescription=${SERVER_DESCRIPTION}"
|
||||
fi
|
||||
|
||||
if [ -n "${SERVER_PASSWORD}" ]; then
|
||||
STARTCOMMAND+=("-serverpassword=${SERVER_PASSWORD}")
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user