[![GitHub Actions Docker Image CI](https://github.com/jjsalinas/hlds-server/workflows/Docker%20Image%20CI/badge.svg)](https://github.com/jjsalians/hl-server/actions) ![banner](banner.png) # HLDS Docker dproto(47/48 Steam+noSteam) - Crossfire 24/7 ## 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 Build the image `hlds`: ```bash docker build -t hlds . ``` Run your image ```bash docker run -it --rm -d --name hlds -p27015:27015 -p27015:27015/udp ``` You can add extra parameters when starting the image ```bash docker run -it --rm --name hlds -p27015:27015 -p27015:27015/udp hlds +map crossfire +maxplayers 16 +password 1 +vs_password "password" ``` > **Note:** Any [server config command](http://sr-team.clan.su/K_stat/hlcommandsfull.html) can be passed by using `+` after the docker command options. ## What is included * [HLDS Build](https://github.com/DevilBoy-eXe/hlds) `7882`. This is the last known version that is compatible with last version of **dproto** that's `0.9.582` ``` Protocol version 47/48 Exe version 1.1.2.2/Stdio (valve) Exe build: 17:23:32 May 24 2018 (7882) ``` * [Metamod-p](https://github.com/Bots-United/metamod-p) version `1.21p38` * [AMX Mod X](https://github.com/alliedmodders/amxmodx) version `1.8.2` * **dproto** version `0.9.582`. This is the last version of **dproto**, the project is abandoned. * Patched list of master servers (official and unofficial master servers included), so your game server appear in game server browser of all the clients * Minimal config present, such as `mp_timelimit` and mapcycle ## Default mapcycle - crossfire 24/7 * crossfire ## 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: ```bash docker run -it --rm -d -p27015:27015 -p27015:27015/udp -v $(pwd)/valve/config:/opt/steam/hlds/valve/config hlds ```