mirror of
https://github.com/GSManagerXZ/GameServerManager.git
synced 2026-07-01 04:34:22 +08:00
34 lines
1.2 KiB
YAML
34 lines
1.2 KiB
YAML
volumes:
|
||
gsm3_data:
|
||
driver: local
|
||
|
||
services:
|
||
management_panel:
|
||
build: .
|
||
container_name: GSManager3
|
||
image: xiaozhu674/gameservermanager:3.1.0
|
||
user: root
|
||
ports:
|
||
# GSM3管理面板端口
|
||
- "3001:3001" # GSM3 Web管理界面
|
||
volumes:
|
||
- ./game_file:/home/.config # 通用游戏存档路径1。请务必将此宿主目录权限设置为777
|
||
- ./game_file:/home/.local # 通用游戏存档路径2。请务必将此宿主目录权限设置为777
|
||
- ./game_data:/home/steam/games # 通用游戏存档路径2。请务必将此宿主目录权限设置为777
|
||
- gsm3_data:/root/server/data # GSM3数据目录(使用命名卷)
|
||
environment:
|
||
- TZ=Asia/Shanghai # 设置时区
|
||
- SERVER_PORT=3001 # GSM3服务端口
|
||
stdin_open: true # 保持STDIN打开
|
||
tty: true # 分配TTY
|
||
restart: unless-stopped # 自动重启策略
|
||
|
||
# 如果需要,取消注释下面的行来限制资源
|
||
# deploy:
|
||
# resources:
|
||
# limits:
|
||
# cpus: '4.0'
|
||
# memory: 8G
|
||
# reservations:
|
||
# cpus: '2.0'
|
||
# memory: 4G |