Files
docker-garrysmod/README.md

112 lines
2.4 KiB
Markdown
Raw Normal View History

2017-01-15 13:53:04 +00: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
2017-12-07 18:40:57 +01:00
```
docker run -it \
-p 27015:27015/tcp \
-p 27015:27015/udp \
2017-12-06 23:15:39 +01:00
hackebein/garrysmod
2017-12-07 18:40:57 +01:00
```
2017-01-15 13:53:04 +00:00
2019-03-24 14:24:43 +01:00
## Enable API
```
docker run -it \
-p 27015:27015/tcp \
-p 27015:27015/udp \
2019-03-24 14:24:43 +01:00
-e "AUTHKEY=..." \
hackebein/garrysmod
```
Get your [AUTHKEY](http://steamcommunity.com/dev/apikey)
2017-01-15 13:53:04 +00:00
## Public
2019-03-24 14:24:43 +01:00
If you have activated the API, this step happens automatically.
2017-01-15 13:53:04 +00:00
2017-12-07 18:40:57 +01:00
```
docker run -it \
-p 27015:27015/tcp \
-p 27015:27015/udp \
2017-12-06 23:15:39 +01:00
-e "GLST=..." \
hackebein/garrysmod
2017-12-07 18:40:57 +01:00
```
2017-01-15 13:53:04 +00:00
Get your [GLST](http://steamcommunity.com/dev/managegameservers) (`APPID: 4000`)
2019-03-24 14:24:43 +01:00
## Workshop Collection
Workshop access requires the API.
2019-03-24 15:38:47 +01:00
2017-12-07 18:40:57 +01:00
```
docker run -it \
-p 27015:27015/tcp \
-p 27015:27015/udp \
2017-12-06 23:15:39 +01:00
-e "AUTHKEY=..." \
-e "WORKSHOPCOLLECTIONID=..." \
hackebein/garrysmod
2017-12-07 18:40:57 +01:00
```
2017-01-15 13:53:04 +00:00
## Config
2017-12-07 18:40:57 +01:00
```
docker run -it \
-p 27015:27015/tcp \
-p 27015:27015/udp \
2019-03-25 03:29:49 +01:00
-v ./server.cfg:/opt/steam/garrysmod/cfg/server.cfg \
2017-12-06 23:15:39 +01:00
hackebein/garrysmod
2017-12-07 18:40:57 +01:00
```
2017-12-06 23:15:39 +01:00
2019-03-24 14:24:43 +01:00
## Example for TTT
2017-12-07 18:40:57 +01:00
```
# make sure server.cfg file exists
touch ./server.cfg
# start container
docker run -it \
-p 27015:27015/tcp \
-p 27015:27015/udp \
2017-12-06 23:15:39 +01:00
-e "AUTHKEY=..." \
2019-03-24 14:24:43 +01:00
-e "GAMEMODE=terrortown" \
-e "MAP=ttt_minecraft_b5" \
2020-06-06 18:42:20 +02:00
-e "WORKSHOP=843519054" \
-e "WORKSHOPDL=843519054" \
2019-03-25 03:29:49 +01:00
-v ./server.cfg:/opt/steam/garrysmod/cfg/server.cfg \
-v ./overlay:/opt/overlay \
2017-12-06 23:15:39 +01:00
hackebein/garrysmod
2017-12-07 18:40:57 +01:00
```
2019-03-24 15:38:47 +01:00
Checkout [overlay](https://github.com/Hackebein/docker-srcds#overlay-folder) to overwrite files that are provided by Steam.
2019-03-24 14:24:43 +01:00
Go to [Workshopp Collection](https://steamcommunity.com/sharedfiles/filedetails/?id=843519054)
2017-01-15 13:53:04 +00:00
## Additional Environment
TICKRATE: Tickrate of server, **Attention:** Change not recommended
(`Default: 66`)
2019-03-24 14:24:43 +01:00
GAMEMODE:
2017-01-15 13:53:04 +00:00
(`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
2017-02-14 16:07:55 +01:00
(`Default: `)
2019-03-24 15:38:47 +01:00
2020-06-06 18:42:20 +02:00
WORKSHOP: downloads workshop collection for server
(`Default: `)
WORKSHOPDL: downloads workshop collection for client before joining
(`Default: `)
2019-03-24 15:38:47 +01:00
## More Options
You can found more configuration options on the parent image page [hackebein/srcds](https://github.com/Hackebein/docker-srcds)