Files
GameServerManager/docker-compose.yml
2025-07-19 17:22:27 +08:00

34 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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