Sign inSign up

threesquared/docker-css-server

By threesquared

•Updated about 1 year ago

Dockerfile to run a CS:S srcds server

Image
0

1.3K

threesquared/docker-css-server repository overview

⁠Counter-Strike: Source Server

Docker Build Status Docker Pulls

Dockerfile to run a CS:S srcds server

⁠Usage

You can use it in a compose file:

version: '2'
services:
  server:
    image: threesquared/docker-css-server:latest
    environment:
      - RCON_PASSWORD=mypass
      - SERVER_HOSTNAME="My Server"
    ports:
      - "27005:27005/udp"
      - "27015:27015"
      - "27015:27015/udp"
    volumes:
      - ./cfg:/home/steam/server/cstrike/cfg
      - ./maps:/home/steam/server/cstrike/maps

Or in a Dockerfile:

FROM threesquared/docker-css-server

ENV SERVER_HOSTNAME="My Server"

COPY ./cfg/ /home/steam/server/cstrike/cfg
COPY ./maps/ /home/steam/server/cstrike/maps

CMD ["+maxplayers", "32", "+map", "aim_spacewar"]

⁠Build

$ docker build -t threesquared/docker-css-server .

Tag summary

Content type

Image

Digest

Size

1.1 GB

Last updated

over 7 years ago

docker pull threesquared/docker-css-server