forked from GSManagerXZ/GameServerManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (44 loc) · 1.26 KB
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (44 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
volumes:
gsm3_data:
driver: local
game_data:
driver: local
game_file:
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/.config
- game_data:/home/.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 # 自动重启策略
# 如果需要,取消注释下面的行来限制资源
# deploy:
# resources:
# limits:
# cpus: '4.0'
# memory: 8G
# reservations:
# cpus: '2.0'
# memory: 4G