-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
32 lines (32 loc) · 873 Bytes
/
compose.yml
File metadata and controls
32 lines (32 loc) · 873 Bytes
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
services:
cstrike:
build:
context: .
dockerfile: Containerfile
image: localhost/cs-server:latest
container_name: scoutzknivez
ports:
- "27015:27015/udp"
- "27015:27015/tcp"
volumes:
- ./config/server.cfg:/hlds/cstrike/server.cfg:ro,Z
- ./config/mapcycle.txt:/hlds/cstrike/mapcycle.txt:ro,Z
- ./config/mapcycle-dust2.txt:/hlds/cstrike/mapcycle-dust2.txt:ro,Z
- ./config/mapcycle-nipper.txt:/hlds/cstrike/mapcycle-nipper.txt:ro,Z
environment:
- MAXPLAYERS=20
- MAP=scoutzknivez
- PORT=27015
- BOTS=1
- MAPCYCLE=mapcycle.txt
sysctls:
- net.core.rmem_max=26214400
- net.core.wmem_max=26214400
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
mem_limit: 512m
cpus: 2.0
stop_grace_period: 50s
restart: unless-stopped