feat:优化palworld-server
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
CONTAINER_NAME="palworld-server"
|
||||
PANEL_APP_PORT_HTTP="8211"
|
||||
PANEL_APP_PORT_RCON="25575"
|
||||
DATA_PATH="./data"
|
||||
MAX_PLAYERS="32"
|
||||
MULTITHREAD_SWITCH="true"
|
||||
PUBLIC_SWITCH="false"
|
||||
|
||||
@@ -16,13 +16,6 @@ additionalProperties:
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ./data
|
||||
edit: true
|
||||
envKey: DATA_PATH
|
||||
labelEn: Data folder path
|
||||
labelZh: 数据文件夹路径
|
||||
required: true
|
||||
type: text
|
||||
- default: 32
|
||||
edit: true
|
||||
envKey: MAX_PLAYERS
|
||||
|
||||
0
apps/palworld-server/latest/data/.gitkeep
Normal file
0
apps/palworld-server/latest/data/.gitkeep
Normal file
@@ -10,7 +10,7 @@ services:
|
||||
- ${PANEL_APP_PORT_RCON}:${PANEL_APP_PORT_RCON}/tcp
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- ${DATA_PATH}:/opt/palworld/Pal/Saved
|
||||
- ./data:/opt/palworld/Pal/Saved
|
||||
environment:
|
||||
- GAME_PORT=${PANEL_APP_PORT_HTTP}
|
||||
- MAX_PLAYERS=${MAX_PLAYERS}
|
||||
|
||||
3
apps/palworld-server/latest/scripts/init.sh
Normal file
3
apps/palworld-server/latest/scripts/init.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
chown -R 1000:1000 data
|
||||
Reference in New Issue
Block a user