mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2024-12-18 08:10:23 +00:00
add cs2 dedicated server
This commit is contained in:
parent
5db908d329
commit
5cc5aba0c8
10
README.md
10
README.md
|
@ -56,6 +56,7 @@ docker compose up
|
||||||
- [Domain Name Service (DNS)](#domain-name-service-dns)
|
- [Domain Name Service (DNS)](#domain-name-service-dns)
|
||||||
- [E-commerce](#e-commerce)
|
- [E-commerce](#e-commerce)
|
||||||
- [File Transfer & Synchronization](#file-transfer--synchronization)
|
- [File Transfer & Synchronization](#file-transfer--synchronization)
|
||||||
|
- [Games and Control Panels](#games-and-control-panels)
|
||||||
- [Genealogy](#genealogy)
|
- [Genealogy](#genealogy)
|
||||||
- [Identity Management - Single Sign-On (SSO) & LDAP](#identity-management---single-sign-on-sso--ldap)
|
- [Identity Management - Single Sign-On (SSO) & LDAP](#identity-management---single-sign-on-sso--ldap)
|
||||||
- [Miscellaneous](#miscellaneous)
|
- [Miscellaneous](#miscellaneous)
|
||||||
|
@ -409,6 +410,15 @@ A request bin service allows one to collect and inspect HTTP requests. It may be
|
||||||
- [Request-Baskets](https://github.com/darklynx/request-baskets) - HTTP requests collector to test webhooks, notifications, REST clients and more.
|
- [Request-Baskets](https://github.com/darklynx/request-baskets) - HTTP requests collector to test webhooks, notifications, REST clients and more.
|
||||||
- [Mockbin](https://github.com/Kong/mockbin) - Mock, Test & Track HTTP Requests and Response for Microservices.
|
- [Mockbin](https://github.com/Kong/mockbin) - Mock, Test & Track HTTP Requests and Response for Microservices.
|
||||||
|
|
||||||
|
### Games and Control Servers
|
||||||
|
|
||||||
|
**[`^ back to top ^`](#-project-list)**
|
||||||
|
|
||||||
|
Multiplayer game servers, browser games and utilities for managing game servers.
|
||||||
|
|
||||||
|
- [cs2-dedicated-server](examples/cs2-dedicated-server) - CS2 Dedicated Server Docker Image with an RCON web-based control panel.
|
||||||
|
|
||||||
|
|
||||||
### Miscellaneous
|
### Miscellaneous
|
||||||
|
|
||||||
**[`^ back to top ^`](#-project-list)**
|
**[`^ back to top ^`](#-project-list)**
|
||||||
|
|
12
examples/cs2-dedicated-server/README.md
Normal file
12
examples/cs2-dedicated-server/README.md
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# References
|
||||||
|
|
||||||
|
- https://github.com/joedwards32/CS2
|
||||||
|
- https://github.com/shobhit-pathak/cs2-rcon-panel
|
||||||
|
|
||||||
|
# Notes
|
||||||
|
|
||||||
|
Minimum system requirements are:
|
||||||
|
|
||||||
|
- 2 CPUs
|
||||||
|
- 2 GiB RAM
|
||||||
|
- 40 GB of disk space for the container or mounted as a persistent volume on /home/steam/cs2-dedicated/
|
53
examples/cs2-dedicated-server/docker-compose.yml
Normal file
53
examples/cs2-dedicated-server/docker-compose.yml
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
version: '3.7'
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
cs2-server:
|
||||||
|
image: joedwards32/cs2
|
||||||
|
container_name: cs2-dedicated-server
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
# Server configuration
|
||||||
|
- SRCDS_TOKEN=<YOUR-GAME-SERVER-TOKEN> # Game Server Token from https://steamcommunity.com/dev/managegameservers
|
||||||
|
- CS2_SERVERNAME=MY-CS2-SERVER # (Set the visible name for your private server)
|
||||||
|
- CS2_CHEATS=0 # (0 - disable cheats, 1 - enable cheats)
|
||||||
|
- CS2_PORT=27015 # (CS2 server listen port tcp_udp)
|
||||||
|
- CS2_SERVER_HIBERNATE=0 # (Put server in a low CPU state when there are no players. 0 - hibernation disabled, 1 - hibernation enabled)
|
||||||
|
- CS2_LAN=0 # (0 - LAN mode disabled, 1 - LAN Mode enabled)
|
||||||
|
- CS2_RCONPW=cruelly-sequel # (RCON password)
|
||||||
|
- CS2_PW=sake-earthly-lair # (CS2 server password)
|
||||||
|
- CS2_MAXPLAYERS=10 # (Max players)
|
||||||
|
# Game modes
|
||||||
|
- CS2_GAMEALIAS=competitive # (Game type, e.g. casual, competitive, deathmatch. See https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers)
|
||||||
|
- CS2_GAMETYPE=0 # (Used if CS2_GAMEALIAS not defined. See https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers)
|
||||||
|
- CS2_GAMEMODE=1 # (Used if CS2_GAMEALIAS not defined. See https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers)
|
||||||
|
- CS2_MAPGROUP=mg_active # (Map pool)
|
||||||
|
- CS2_STARTMAP=de_dust2 # (Start map)
|
||||||
|
# Bots
|
||||||
|
- CS2_BOT_DIFFICULTY=0 # (0 - easy, 1 - normal, 2 - hard, 3 - expert)
|
||||||
|
- CS2_BOT_QUOTA=0 # (Number of bots)
|
||||||
|
- CS2_BOT_QUOTA_MODE=competitive # (fill, competitive)
|
||||||
|
# TV
|
||||||
|
- TV_AUTORECORD=0 # Automatically records all games as CSTV demos: 0=off, 1=on.
|
||||||
|
- TV_ENABLE=0 # Activates CSTV on server: 0=off, 1=on.
|
||||||
|
- TV_PORT=27020 # Host SourceTV port
|
||||||
|
- TV_PW=changeme # CSTV password for clients
|
||||||
|
- TV_RELAY_PW=changeme # CSTV password for relay proxies
|
||||||
|
- TV_MAXRATE=0 # World snapshots to broadcast per second. Affects camera tickrate.
|
||||||
|
- TV_DELAY=0 # Max CSTV spectator bandwidth rate allowed, 0 == unlimited
|
||||||
|
volumes:
|
||||||
|
- cs2:/home/steam/cs2-dedicated/
|
||||||
|
ports:
|
||||||
|
- 27015:27015/tcp # TCP
|
||||||
|
- 27015:27015/udp # UDP
|
||||||
|
#- 27020:27020/udp # UDP
|
||||||
|
|
||||||
|
cs2-rconpanel:
|
||||||
|
image: soren90/rcon-panel
|
||||||
|
container_name: cs2-rcon-panel
|
||||||
|
ports:
|
||||||
|
- 3000:3000
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
cs2:
|
|
@ -9,7 +9,7 @@ services:
|
||||||
expose:
|
expose:
|
||||||
- 8000
|
- 8000
|
||||||
ports:
|
ports:
|
||||||
- 8000:8000
|
- 8888:8000
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
- redis
|
- redis
|
||||||
|
|
|
@ -10,7 +10,7 @@ services:
|
||||||
container_name: wikijs
|
container_name: wikijs
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000 # WEB UI
|
- 8888:3000 # WEB UI
|
||||||
volumes:
|
volumes:
|
||||||
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/wikijs/config:/config
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/wikijs/config:/config
|
||||||
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/wikijs/data:/data
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/wikijs/data:/data
|
||||||
|
|
Loading…
Reference in New Issue
Block a user