Sign inSign up

phenom1337/cssold_srcds_cssv34

By phenom1337

•Updated about 1 year ago

Docker image i386/debian 10 for running Counter Strike: Source v34 Server

Image
1

1.4K

phenom1337/cssold_srcds_cssv34 repository overview

⁠Docker image i386/debian 10 for running Counter Strike: Source v34 Server

This image for running a Counter-Strike: Source v34 game server. The server runs inside a screen session, making it easy to manage and connect to the server console when needed.

⁠Features:

  • Russian Localization Support: The server is configured to support the Russian language, including texts and messages.
  • Using screen: The server runs inside a screen session, allowing easy access to its console and management.
  • Optimized Image: A minimal base image with only the necessary dependencies for the server to run.
  • Easy to Use: Ready-to-use commands for starting and stopping the server.

⁠How to Run

Create a docker-compose.yaml file with the following content:

services:
  srcds-cssv34:
    image: phenom1337/cssold_srcds_cssv34:latest
    restart: unless-stopped
    deploy:
      resources:
        limits:
          cpus: '1.0'
          memory: 2048M
    ports:
      - "27015:27015"
      - "27015:27015/udp"
    volumes:
      - ./server:/home/container
    command: >
      sh -c "screen -A -m -d -S srv ./srcds_run -game cstrike +map de_dust2 -ip 0.0.0.0 -port 27015 +tv_port 27016 -maxplayers 13 +sv_pure 2 -insecure -debug -condebug -localcser -nomaster -tickrate 100 -fps_max 500 -usercon; while true; do sleep 1; done"

⁠Start the server using Docker Compose:

docker compose up -d

⁠Connect to the game server console

docker compose exec srcds-cssv34 screen -x srv

⁠Detached to the game server console

Press the keyboard shortcut: Ctrl + A + D

⁠Access the server:

  • Connect to the server using the game client at your-server-ip:27015.
  • Server logs and configurations are stored in the ./server directory on your host machine.

⁠Stop the server:

docker compose down

⁠Configuration Details

  • Ports:

    • 27015: The server listens on this port for both TCP and UDP traffic.
  • Volumes:

    • ./server:/home/container: Maps the ./server directory on your host to the container's working directory for persistent storage.
  • Resource Limits:

    • CPU: Limited to 1 core.
    • Memory: Limited to 2048 MB.
  • Command: The server runs inside a screen session for easy management.

  • Key server parameters:

    • +map de_dust2: Starts the server with the de_dust2 map.
    • -maxplayers 13: Sets the maximum number of players to 13.
    • -tickrate 100: Sets the server tickrate to 100.
    • -fps_max 500: Limits the server FPS to 500.
    • -insecure: Disables VAC (Valve Anti-Cheat) for compatibility with certain mods.
    • -nomaster: Prevents the server from appearing in the public server list.

⁠Customization

Change the Map: Replace de_dust2 with another map in the command section. Adjust Player Limit: Modify the -maxplayers value. Modify Server Configuration: Edit the files in the ./server directory after the first run.

⁠Notes

Ensure Docker and Docker Compose are installed on your system. Replace your-server-ip with the actual IP address of your server. For advanced configurations, refer to the Counter-Strike: Source documentation⁠.

This setup provides a simple and efficient way to run a Counter-Strike: Source v34 server with Docker. Enjoy your gaming experience! 🎮

Tag summary

Content type

Image

Digest

sha256:d59727a72…

Size

115.7 MB

Last updated

over 1 year ago

docker pull phenom1337/cssold_srcds_cssv34