Update README.md

add missing information in readme
This commit is contained in:
Lars Olzem 2020-01-12 21:54:39 +01:00 committed by GitHub
parent fd8295f22c
commit b0c7b9279a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,16 +7,18 @@ Garry's Mod is a physics sandbox. There aren't any predefined aims or goals. We
## Basic ## Basic
``` ```
docker run \ docker run -it \
--expose 27015 \ -p 27015:27015/tcp \
-p 27015:27015/udp \
hackebein/garrysmod hackebein/garrysmod
``` ```
## Enable API ## Enable API
``` ```
docker run \ docker run -it \
--expose 27015 \ -p 27015:27015/tcp \
-p 27015:27015/udp \
-e "AUTHKEY=..." \ -e "AUTHKEY=..." \
hackebein/garrysmod hackebein/garrysmod
``` ```
@ -26,8 +28,9 @@ Get your [AUTHKEY](http://steamcommunity.com/dev/apikey)
If you have activated the API, this step happens automatically. If you have activated the API, this step happens automatically.
``` ```
docker run \ docker run -it \
--expose 27015 \ -p 27015:27015/tcp \
-p 27015:27015/udp \
-e "GLST=..." \ -e "GLST=..." \
hackebein/garrysmod hackebein/garrysmod
``` ```
@ -38,8 +41,9 @@ Get your [GLST](http://steamcommunity.com/dev/managegameservers) (`APPID: 4000`)
Workshop access requires the API. Workshop access requires the API.
``` ```
docker run \ docker run -it \
--expose 27015 \ -p 27015:27015/tcp \
-p 27015:27015/udp \
-e "AUTHKEY=..." \ -e "AUTHKEY=..." \
-e "WORKSHOPCOLLECTIONID=..." \ -e "WORKSHOPCOLLECTIONID=..." \
hackebein/garrysmod hackebein/garrysmod
@ -48,16 +52,18 @@ docker run \
## Config ## Config
``` ```
docker run \ docker run -it \
--expose 27015 \ -p 27015:27015/tcp \
-p 27015:27015/udp \
-v ./server.cfg:/opt/steam/garrysmod/cfg/server.cfg \ -v ./server.cfg:/opt/steam/garrysmod/cfg/server.cfg \
hackebein/garrysmod hackebein/garrysmod
``` ```
## Example for TTT ## Example for TTT
``` ```
docker run \ docker run -it \
--expose 27015 \ -p 27015:27015/tcp \
-p 27015:27015/udp \
-e "AUTHKEY=..." \ -e "AUTHKEY=..." \
-e "GAMEMODE=terrortown" \ -e "GAMEMODE=terrortown" \
-e "MAP=ttt_minecraft_b5" \ -e "MAP=ttt_minecraft_b5" \