artkirienko / hlds-docker-dproto

🎮 Half-Life Dedicated Server as a Docker image dproto(47/48 Steam+noSteam)
31 stars 6 forks source link
docker goldsrc half-life hldm hlds

GitHub Actions Docker Image CI HitCount

banner

HLDS Docker dproto(47/48 Steam+noSteam)

Half-Life Dedicated Server as a Docker image

Probably the fastest and easiest way to set up an old-school Half-Life Deathmatch Dedicated Server (HLDS). Both Steam and noSteam, old and new half-life clients can connect and play together! You don't need to know anything about Linux or HLDS to start a server. You just need Docker and this image.

Quick Start

Start a new server by running:

docker run -it --rm -d -p27015:27015 -p27015:27015/udp artkirienko/hlds

Change the player slot size, map or rcon_password by running:

docker run -it --rm -d --name hlds -p27015:27015 -p27015:27015/udp artkirienko/hlds +map crossfire +maxplayers 12 +rcon_password SECRET_PASSWORD

Note: Any server config command can be passed by using +. But it has to follow after the image name artkirienko/hlds.

What is included

Default mapcycle

Advanced

In order to use a custom server config file, add your settings to valve/config/server.cfg of this project and mount the directory as volume to /opt/steam/hlds/valve/config by running:

docker run -it --rm -d -p27015:27015 -p27015:27015/udp -v $(pwd)/valve/config:/opt/steam/hlds/valve/config artkirienko/hlds