diff --git a/README.md b/README.md new file mode 100644 index 0000000..04258c7 --- /dev/null +++ b/README.md @@ -0,0 +1,71 @@ +# DEPLOYMENT OF A CSGO 2 SERVER + +we are deploying a csgo server by using a docker-compose that uses the joedwards32/cs2 image + +![ARCHI](docs/cs2.jpg) + +## STEP 1 + +you need to have docker and docker compose installed + +## STEP 2 + +Once you have docker running on your system +create a directory and create a docker compose file +then paste the following code + +```yml + services: + cs2-server: + image: joedwards32/cs2 + container_name: cs2-dedicated + environment: + - gameconf.env + volumes: + - cs2:/home/steam/cs2-dedicated/ # Persistent data volume mount point inside container + ports: + - "27015:27015/tcp" # TCP + - "27015:27015/udp" # UDP + - "27020:27020/udp" # UDP + stdin_open: true # Add local console for docker attach, docker attach --sig-proxy=false cs2-dedicated + tty: true # Add local console for docker attach, docker attach --sig-proxy=false cs2-dedicated + volumes: + cs2: +``` + +We are not using a token because for now we are hosting the server on a LAN +and we don't need the VAC (this is a protection against cheaters deployed by VALVE ) +But if you want to use the token you can add this line at the top of the docker-compose file +Note that you need to have a clean and not locked account on steam. + +``` +SRCDS_TOKEN="" (Game Server Token from https://steamcommunity.com/dev/managegameservers) +``` + +## STEP 3 + +you need to modify the gameconf.env to configure the gameplay. + +## STEP 4 + +start the server + +```bash +docker-compose up -d +``` + +## STEP 5 + +### accessing directly the game party + +Now the server is working +To access directly the game party we need to enter the ip adress and the password in a steam setting as shown bellow + +# here we are ---------- ENJOY ---------- + + + + + + + diff --git a/docs/cs2.jpg b/docs/cs2.jpg new file mode 100644 index 0000000..4c46e34 Binary files /dev/null and b/docs/cs2.jpg differ diff --git a/gameconf.env b/gameconf.env new file mode 100644 index 0000000..e69de29