This repository was archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcss-ssh.yml
More file actions
52 lines (50 loc) · 1.27 KB
/
css-ssh.yml
File metadata and controls
52 lines (50 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '3.7'
networks:
srcds:
driver: bridge
driver_opts:
com.docker.network.bridge.enable_icc: 0
# SRCDS image: Counter-Strike: Source (SSH enabled)
services:
css:
image: ghcr.io/thetredev/steamcmd:srcds-latest
container_name: css
restart: unless-stopped
stdin_open: true
tty: true
environment:
TIME_ZONE: Europe/Berlin
STEAMCMD_UID: 1000
STEAMCMD_GID: 5000
STEAMCMD_SERVER_APPID: 232330
STEAMCMD_SERVER_GAME: cstrike
STEAMCMD_SERVER_MAP: de_dust2
STEAMCMD_SERVER_TICKRATE: 67
STEAMCMD_SERVER_MAXPLAYERS: 32
STEAMCMD_SERVER_SESSION_NAME: css
STEAMCMD_SSH_SERVER_ENABLE: 1
STEAMCMD_SSH_AUTHORIZED_KEYS: "<your SSH public keys separated by newline and base64 encoded>"
ports:
# SSH port
- "2244:22/tcp"
# SRCDS port
- "27015:27015/udp"
# enable the TCP one for RCON
#- "27015:27015/tcp"
volumes:
# SSH host keys
- ./css-ssh:/opt/ssh
# game server files
- ./css:/var/lib/steamcmd/server
# shared tmux socket directory:
#- /tmp/steamcmd:/tmp/steamcmd
networks:
- srcds
security_opt:
- no-new-privileges
tmpfs:
- /tmp
ulimits:
nofile:
soft: 2048
hard: 2048