Giter VIP home page Giter VIP logo

docker-csgo-server's Introduction

Counter Strike Global Offensive + Docker License

CS:GO server in docker with 128 tick enabled by default.

Original creator: Gonzih/docker-csgo-server

Docker hub image

DockerHub

docker pull jackzmc/srcds-csgo

Tag Descriptions / Dockerfile Links

  • Latest - The latest, full game image.
  • Bare - Does not contain a predownloaded game image, must be installed on start
  • Sourcemod - Contains bare version with sourcemod preinstalled

Envs:

USER - username for /home/ dir (default: steam)
SERVER - where to store data files (steamcmd & csgo dir, defaults to /home/$USER/server )

Details:

By default image is build with enabled autoupdate feature (take a look at csgo.sh file). You can create new Dockerfile based on that image (FROM csgo) and customize it with plugins, configs, CMD and ENTRYPOINT instructions.

Also you can create volumes with the -v flag that point to the host for these directories:

  • /home/steam/server/csgo
  • /home/steam/server/csgo/cfg
  • /home/steam/server/csgo/addons
# Build image and tag it as csgo
docker build -t csgo github.com/jackzmc/docker-csgo-server

# Run image with default options (CMD in Dockerfile)
docker run -d -p 27015:27015 -p 27015:27015/udp csgo

# Run image with hostname and GLST token, classic casual server
docker run -it -p 27032:27015 -p 27032:27015/udp csgo -console -usercon +mapgroup mg_active +map de_cache +hostname "\"MyCsgoServer\"" +sv_steamaccount "\"GSLT TOKEN HERE\""
# (to have spaces in hostname you need to escape quotes: \"

# Run a private server, with rcon and password
docker run -it -p 27032:27015 -p 27032:27015/udp csgo -console -usercon +mapgroup mg_active +map de_cache +rcon_password "mypass" +sv_password "serverpass"

# Run image with as Classic Casual server
docker run -d -p 27015:27015 -p 27015:27015/udp csgo -console -usercon +game_type 0 +game_mode 0 +mapgroup mg_active +map de_cache

# Run image with as Classic Competetive server
docker run -d -p 27015:27015 -p 27015:27015/udp csgo -console -usercon +game_type 0 +game_mode 1 +mapgroup mg_active +map de_cache

# Run image with as Arm Race server
docker run -d -p 27015:27015 -p 27015:27015/udp csgo -console -usercon +game_type 1 +game_mode 0 +mapgroup mg_armsrace +map ar_shoots

# Run image with as Demolition server
docker run -d -p 27015:27015 -p 27015:27015/udp csgo -console -usercon +game_type 1 +game_mode 1 +mapgroup mg_demolition +map de_lake

# Run image with as Deathmatch server
docker run -d -p 27015:27015 -p 27015:27015/udp csgo -console -usercon +game_type 1 +game_mode 2 +mapgroup mg_allclassic +map de_dust

# To run lan server just add `+sv_lan 1` at end of command
docker run -d -p 27015:27015 -p 27015:27015/udp csgo -console -usercon +game_type 0 +game_mode 1 +mapgroup mg_active +map de_cache +sv_lan 1

Running public server

To run public server you need to Register Login Token and adding +sv_setsteamaccount THISGSLTHERE -net_port_try 1 to the server command Refer to Docs for more details.

docker-csgo-server's People

Contributors

gonzih avatar jackzmc avatar ren6767 avatar ruippeixotog avatar sparticvs avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.