mirror of
https://github.com/GSManagerXZ/GameServerManager.git
synced 2026-05-07 14:08:58 +08:00
32 lines
1014 B
YAML
32 lines
1014 B
YAML
volumes:
|
|
gsm3_data:
|
|
driver: local
|
|
|
|
services:
|
|
management_panel:
|
|
build: .
|
|
container_name: GSManager3
|
|
image: xiaozhu674/gameservermanager:latest
|
|
user: root
|
|
ports:
|
|
# GSM3管理面板端口
|
|
- "3001:3001"
|
|
# 游戏端口,按需映射
|
|
- "27015:27015"
|
|
volumes:
|
|
#steam用户数据目录 不建议修改
|
|
- ./game_data:/home/steam/.config
|
|
- ./game_data:/home/steam/.local
|
|
- ./game_file:/home/steam/games
|
|
#root用户数据目录 不建议修改
|
|
- ./game_data:/root/.config
|
|
- ./game_data:/root/.local
|
|
- ./game_file:/root/steam/games
|
|
#面板数据,请勿改动
|
|
- gsm3_data:/root/server/data
|
|
environment:
|
|
- TZ=Asia/Shanghai # 设置时区
|
|
- SERVER_PORT=3001 # GSM3服务端口
|
|
stdin_open: true # 保持STDIN打开
|
|
tty: true # 分配TTY
|
|
restart: unless-stopped # 自动重启策略 |