docs(更新说明): 添加docker compose
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
xiaoqidun 2024-02-14 05:43:48 +08:00
parent dd89a499d5
commit 1a72ae8b54

@ -6,12 +6,38 @@ Palworld Game Server幻兽帕鲁游戏服务器
## 拉取镜像 ## 拉取镜像
``` ```shell
docker pull ccr.ccs.tencentyun.com/xiaoqidun/palgs:latest docker pull ccr.ccs.tencentyun.com/xiaoqidun/palgs:latest
``` ```
## 运行镜像 ## 运行镜像
``` ```shell
docker run -d -p 8211:8211/udp ccr.ccs.tencentyun.com/xiaoqidun/palgs:latest docker run -d -p 8211:8211/udp ccr.ccs.tencentyun.com/xiaoqidun/palgs:latest
``` ```
# docker compose
## 创建配置
```shell
# 项目目录
export project=$(pwd)/palgs
# 数据目录
mkdir -p $project/Saved
chown -R 1000:1000 $project/Saved
# 创建配置
cat > $project/docker-compose.yml << CODE
services:
palgs:
image: 'ccr.ccs.tencentyun.com/xiaoqidun/palgs:latest'
restart: 'always'
container_name: 'palgs'
ports:
- '8211:8211/udp'
volumes:
- '$project/Saved:/home/steam/.local/share/Steam/steamapps/common/PalServer/Pal/Saved'
environment:
- 'TZ=Asia/Shanghai'
CODE
```