A base GMOD Server Docker Image with multiple tags for different contents
To start a vanilla server, simply run docker run -it -d -P vilsol/gmod-base
For simple setups you can just specify environment variables to change a few specifics as follows
They can be configured from the run command: docker run -it -d -P -e "MAP=gm_construct" vilsol/gmod-base
An advanced option is to specify your own startup arguments.
For example, if you wish to add a workshop list to your server, you would use the following run command:
docker run -it -d -P vilsol/gmod-base ./srcds_run -game garrysmod +maxplayers 12 +host_workshop_collection 157384458 +gamemode zombiesurvival +map zs_cleanoffice_v2
The third option is to use a docker-compose.yml file to configure your servers. This is the recommended method for multiple server owners. Here is an example compose file with a sandbox, zombie survival and TTT servers:
version: '2'
services:
sandbox:
image: vilsol/gmod-base:css-tf2
zombiesurvival:
image: vilsol/gmod-base
command: ["./srcds_run -game garrysmod +maxplayers 12 +host_workshop_collection 157384458 +gamemode zombiesurvival +map zs_cleanoffice_v2"]
terrortown:
image: vilsol/gmod-base:css
command: ["./srcds_run -game garrysmod +maxplayers 12 +gamemode terrortown +map de_dust"]
Content type
Image
Digest
Size
2.2 GB
Last updated
over 9 years ago
docker pull vilsol/gmod-base