Skip to content

esdeka/gameserverl4d2

 
 

Repository files navigation

Docker

L4D2 Docker Image

L4D2 Dedicated Server with Metamod & Sourcemod + my personal plugin selection

Prerequisites

You must create the mount directory and give the container full read and write permissions.

Usage

docker run -it --name "esdekal4d2" -v $PWD/content:/home/steam/left4dead2 -p 27035:27035 -p 27035:27035/udp --env SRCDS_PORT=27035 esdeka/gameserverl4d2

testrun:
docker run -it --name "esdekal4d2" -v $PWD/content:/home/steam/left4dead2 -p 27035:27035 -p 27035:27035/udp --env SRCDS_PORT=27035 --rm --env SERVER_NAME="SDK_TEST_SERVER" --env SOURCEMOD_BUILD=6876 --entrypoint /bin/bash esdeka/gameserverl4d2

You can also use the Entrypoint and CMD to customize configs and plugins like you would normally with SRCDS (Port must be changed via Env Variable);

docker run -it --name "L4D2" 						\
    -v /path/to/local/mount:/home/steam/left4dead2 	\
    -p 27015:27015 									\
    -p 27015:27015/udp 								\
    esdeka/gameserverl4d2            				\
	-insecure                                       \
    +maxplayers ${SRCDS_MAXPLAYERS}                 \
    +sv_pure ${SRCDS_PURE}                          \
    +sv_region ${SRCDS_REGION}                      \
    +sv_lan ${SRCDS_LAN}                            \
    +map ${SRCDS_MAP}                               \
    +ip 0.0.0.0

Environment Variables

  • SRCDS_PORT - Port Number for the server to run on (Default 27015)

About

Dockerized L4D2 Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages

  • Python 74.8%
  • Shell 19.2%
  • Dockerfile 6.0%