Skip to content

Commit 00deec1

Browse files
committedSep 10, 2024
Make it "Docker compose" compatible.
1 parent 21d62f3 commit 00deec1

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed
 

‎README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ version: "3.0"
4646

4747
services:
4848
hlds:
49-
image: docker-hlds-won2-hlds
49+
build: .
50+
image: "hlds1110"
5051
restart: always
5152
volumes:
5253
- ./config/cstrike:/server/hlds_l/cstrike
@@ -65,9 +66,9 @@ services:
6566
- no-new-privileges:true
6667
```
6768
68-
Once done, just execute `docker-compose up` to make sure everything works as intended, and you should be good to go. Change also the `user` token so that it is checking with the user and group running the container, to avoid upload issues or potential permission problems.
69+
Once done, just execute `docker compose up` to make sure everything works as intended, and you should be good to go. Change also the `user` token so that it is checking with the user and group running the container, to avoid upload issues or potential permission problems.
6970

70-
In case you need to rebuild the image, just type `docker-compose build` and you should be good to go.
71+
In case you need to rebuild the image, just type `docker compose build` and you should be good to go.
7172

7273
### Important information !
7374

@@ -84,7 +85,7 @@ version: "3.0"
8485
8586
services:
8687
hlds:
87-
image: docker-hlds-won2-hlds
88+
image: "hlds1110"
8889
restart: always
8990
volumes:
9091
- ./config/cstrk13:/server/hlds_l/cstrk13
@@ -94,10 +95,9 @@ services:
9495
command:
9596
- -port 27015 -game cstrk13 +map de_dust2 +maxplayers 16 +localinfo mm_gamedll "dlls/cs_i386.so"
9697
security_opt:
97-
- no-new-privileges:true
98+
- no-new-privileges:1
9899
```
99100

100-
101101
### Customizing your server configuration
102102

103103
Simply go to the `config` folder, and modify the required folders you wish.

‎docker-compose.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
version: "3.0"
22

33
services:
4+
5+
# This is the base image we build
6+
hlds-build:
7+
build: .
8+
image: "hlds1110"
9+
container_name: hlds1110-build
10+
411
hlds:
5-
image: docker-hlds-won2-hlds
12+
image: "hlds1110"
613
restart: always
714
user: "1000:1000" # <- Change this to your UID:GID
815
volumes:
@@ -19,4 +26,4 @@ services:
1926
command:
2027
- -port 27015 -game cstrike +map de_dust2 +maxplayers 16
2128
security_opt:
22-
- no-new-privileges:true
29+
- no-new-privileges:1

0 commit comments

Comments
 (0)
Please sign in to comment.