Skip to content

ForgeSparks custom LinuxGSM Docker image

License

Notifications You must be signed in to change notification settings

ForgeSparks/LinuxGSM-Docker

 
 

Repository files navigation

ForgeSparks custom LinuxGSM Docker Container

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

Usage

docker-compose

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

version: '3'
services:
  csgoserver:
    image: d1ceward/linuxgsm-docker:latest
    environment:
      - GAMESERVER=csgoserver
    volumes:
      - /path/to/serverfiles:/linuxgsm/serverfiles
      - /path/to/log:/linuxgsm/log
      - /path/to/config-lgsm:/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.

Languages

  • Dockerfile 53.2%
  • Shell 46.8%