Dockerfiles for Garry's Mod
Go to file
Lars Olzem b0c7b9279a
Update README.md
add missing information in readme
2020-01-12 21:54:39 +01:00
cfg update build process 2018-08-17 02:49:09 +01:00
.gitignore Add gitignore 2017-01-15 13:52:34 +00:00
Dockerfile fix build 2019-05-11 20:14:10 +02:00
LICENSE Initial commit 2017-01-15 13:29:49 +01:00
README.md Update README.md 2020-01-12 21:54:39 +01:00

What is Garry's Mod?

Garry's Mod is a physics sandbox. There aren't any predefined aims or goals. We give you the tools and leave you to play.

Quick Start

Basic

docker run -it \
    -p 27015:27015/tcp \
    -p 27015:27015/udp \
    hackebein/garrysmod

Enable API

docker run -it \
    -p 27015:27015/tcp \
    -p 27015:27015/udp \
    -e "AUTHKEY=..." \
    hackebein/garrysmod

Get your AUTHKEY

Public

If you have activated the API, this step happens automatically.

docker run -it \
    -p 27015:27015/tcp \
    -p 27015:27015/udp \
    -e "GLST=..." \
    hackebein/garrysmod

Get your GLST (APPID: 4000)

Workshop Collection

Workshop access requires the API.

docker run -it \
    -p 27015:27015/tcp \
    -p 27015:27015/udp \
    -e "AUTHKEY=..." \
    -e "WORKSHOPCOLLECTIONID=..." \
    hackebein/garrysmod

Config

docker run -it \
    -p 27015:27015/tcp \
    -p 27015:27015/udp \
    -v ./server.cfg:/opt/steam/garrysmod/cfg/server.cfg \
    hackebein/garrysmod

Example for TTT

docker run -it \
    -p 27015:27015/tcp \
    -p 27015:27015/udp \
    -e "AUTHKEY=..." \
    -e "GAMEMODE=terrortown" \
    -e "MAP=ttt_minecraft_b5" \
    -e "WORKSHOPCOLLECTIONID=843519054" \
    -v ./server.cfg:/opt/steam/garrysmod/cfg/server.cfg \
    hackebein/garrysmod

Go to Workshopp Collection

Additional Environment

TICKRATE: Tickrate of server, Attention: Change not recommended (Default: 66)

GAMEMODE: (Default: sandbox)

MAP: Map on Server start (Default: gm_flatgrass)

CONFIG: Server config, Attention: Change not recommended (Default: server.cfg)

MAXPLAYERS: Max players (Default: 16)

CUSTOMPARAMETERS: additional parameters (Default: )

More Options

You can found more configuration options on the parent image page hackebein/srcds