• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

GameServerManagers/LinuxGSM-Docker: The Official LinuxGSM Docker image (experime ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

GameServerManagers/LinuxGSM-Docker

开源软件地址(OpenSource Url):

https://github.com/GameServerManagers/LinuxGSM-Docker

开源编程语言(OpenSource Language):

Dockerfile 64.8%

开源软件介绍(OpenSource Introduction):


LinuxGSM LinuxGSM Docker Container

LinuxGSM is the command-line tool for quick, simple deployment and management of Linux dedicated game servers.

This docker container is under development is subject to significant change and not considured stable.

A dockerised version of LinuxGSM https://linuxgsm.com

Dockerhub https://hub.docker.com/r/gameservermanagers/linuxgsm-docker/

Usage

docker-compose

Below is an example docker-compose for csgoserver. Ports will vary depending upon server.

version: '3.4'
services:
linuxgsm:
  image: "ghcr.io/gameservermanagers/linuxgsm-docker:latest"
  container_name: csgoserver
  environment:
    - GAMESERVER=csgoserver
    - LGSM_GITHUBUSER=GameServerManagers
    - LGSM_GITHUBREPO=LinuxGSM
    - LGSM_GITHUBBRANCH=master
  volumes:
    - /path/to/serverfiles:/home/linuxgsm/serverfiles
    - /path/to/log:/home/linuxgsm/log
    - /path/to/config-lgsm:/home/linuxgsm/lgsm/config-lgsm
  ports:
    - "27015:27015/tcp"
    - "27015:27015/udp"
    - "27020:27020/udp"
    - "27005:27005/udp"
  restart: unless-stopped

First Run

Edit the docker-compose.yml file changing GAMESERVER= to the game server of choice. On first run linuxgsm will install your selected server and will start running. Once completed the game server details will be output.

Game Server Ports

Each game server has its own port requirements. Becuase of this you will need to configure the correct ports in your docker-compose after first run. The required ports are output once installation is completed and everytime the docker container is started.

Volumes

volumes are required to save persistant data for your game server. The example above covers a basic csgoserver however some game servers save files in other places. Please check all the correct locations are mounted to remove the risk of loosing save data.

Run LinuxGSM commands

Commands can be run just like standard LinuxGSM using the docker exec command.


docker exec -it csgoserver ./csgoserver details




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
fabiomaia/linuxify: 发布时间:2022-08-15
下一篇:
containernetworking/cni: Container Network Interface - networking for Linux cont ...发布时间:2022-08-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap