Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

Commit 0483577

Browse files
committed
Update Paths
w
1 parent 90c7611 commit 0483577

File tree

2 files changed

+61
-60
lines changed

2 files changed

+61
-60
lines changed

README.md

+58-57
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,58 @@
1-
<h1 align="center">
2-
<br>
3-
<a href="https://linuxgsm.com"><img src="https://i.imgur.com/Eoh1jsi.jpg" alt="LinuxGSM"></a>
4-
LinuxGSM Docker Container
5-
</h1>
6-
7-
[LinuxGSM](https://linuxgsm.com) is the command-line tool for quick, simple deployment and management of Linux dedicated game servers.
8-
9-
> This docker container is under development is subject to significant change and not considured stable.
10-
11-
A dockerised version of LinuxGSM https://linuxgsm.com
12-
13-
Dockerhub https://hub.docker.com/r/gameservermanagers/linuxgsm-docker/
14-
# Usage
15-
16-
## docker-compose
17-
Below is an example `docker-compose` for csgoserver. Ports will vary depending upon server.
18-
```
19-
version: '3.4'
20-
services:
21-
linuxgsm:
22-
build:
23-
context: .
24-
dockerfile: ./Dockerfile
25-
container_name: csgoserver
26-
environment:
27-
- GAMESERVER=csgoserver
28-
- LGSM_GITHUBUSER=GameServerManagers
29-
- LGSM_GITHUBREPO=LinuxGSM
30-
- LGSM_GITHUBBRANCH=master
31-
volumes:
32-
- /home/linuxgsm/serverfiles:/home/linuxgsm/serverfiles
33-
- /home/linuxgsm/serverfiles:/home/linuxgsm/log
34-
- /home/linuxgsm/serverfiles:/home/linuxgsm/lgsm/config-lgsm
35-
ports:
36-
- "27015:27015/tcp"
37-
- "27015:27015/udp"
38-
- "27020:27020/udp"
39-
- "27005:27005/udp"
40-
restart: unless-stopped
41-
```
42-
# First Run
43-
Edit the `docker-compose.yml` file changing `GAMESERVER=` to the game server of choice.
44-
On first run linuxgsm will install your selected server and will start running. Once completed the game server details will be output.
45-
## Game Server Ports
46-
Each game server has its own port requirements. Becuase of this you will need to configure the correct ports in your `docker-compose` after first run. The required ports are output once installation is completed and everytime the docker container is started.
47-
## Volumes
48-
volumes are required to save persistant data for your game server. The example above covers a basic csgoserver however some game servers save files in other places. Please check all the correct locations are mounted to remove the risk of loosing save data.
49-
# Run LinuxGSM commands
50-
51-
Commands can be run just like standard LinuxGSM using the docker exec command.
52-
53-
```
54-
55-
docker exec -it csgoserver ./csgoserver details
56-
57-
```
1+
<h1 align="center">
2+
<br>
3+
<a href="https://linuxgsm.com"><img src="https://i.imgur.com/Eoh1jsi.jpg" alt="LinuxGSM"></a>
4+
LinuxGSM Docker Container
5+
</h1>
6+
7+
[LinuxGSM](https://linuxgsm.com) is the command-line tool for quick, simple deployment and management of Linux dedicated game servers.
8+
9+
> This docker container is under development is subject to significant change and not considured stable.
10+
11+
A dockerised version of LinuxGSM https://linuxgsm.com
12+
13+
Dockerhub https://hub.docker.com/r/gameservermanagers/linuxgsm-docker/
14+
# Usage
15+
16+
## docker-compose
17+
Below is an example `docker-compose` for csgoserver. Ports will vary depending upon server.
18+
```
19+
version: '3.4'
20+
services:
21+
linuxgsm:
22+
build:
23+
context: .
24+
dockerfile: ./Dockerfile
25+
container_name: csgoserver
26+
environment:
27+
- GAMESERVER=csgoserver
28+
- LGSM_GITHUBUSER=GameServerManagers
29+
- LGSM_GITHUBREPO=LinuxGSM
30+
- LGSM_GITHUBBRANCH=master
31+
volumes:
32+
- /path/to/serverfiles:/home/linuxgsm/serverfiles
33+
- /path/to/log:/home/linuxgsm/log
34+
- /path/to/config-lgsm:/home/linuxgsm/lgsm/config-lgsm
35+
ports:
36+
- "27015:27015/tcp"
37+
- "27015:27015/udp"
38+
- "27020:27020/udp"
39+
- "27005:27005/udp"
40+
restart: unless-stopped
41+
```
42+
# First Run
43+
Edit the `docker-compose.yml` file changing `GAMESERVER=` to the game server of choice.
44+
On first run linuxgsm will install your selected server and will start running. Once completed the game server details will be output.
45+
## Game Server Ports
46+
Each game server has its own port requirements. Becuase of this you will need to configure the correct ports in your `docker-compose` after first run. The required ports are output once installation is completed and everytime the docker container is started.
47+
## Volumes
48+
volumes are required to save persistant data for your game server. The example above covers a basic csgoserver however some game servers save files in other places. Please check all the correct locations are mounted to remove the risk of loosing save data.
49+
# Run LinuxGSM commands
50+
51+
Commands can be run just like standard LinuxGSM using the docker exec command.
52+
53+
```
54+
55+
docker exec -it csgoserver ./csgoserver details
56+
57+
```
58+
#

docker-compose.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ services:
1111
- LGSM_GITHUBREPO=LinuxGSM
1212
- LGSM_GITHUBBRANCH=master
1313
volumes:
14-
- /home/linuxgsm/serverfiles:/home/linuxgsm/serverfiles
15-
- /home/linuxgsm/serverfiles:/home/linuxgsm/log
16-
- /home/linuxgsm/serverfiles:/home/linuxgsm/lgsm/config-lgsm
14+
- /path/to/serverfiles:/home/linuxgsm/serverfiles
15+
- /path/to/log:/home/linuxgsm/log
16+
- /path/to/config-lgsm:/home/linuxgsm/lgsm/config-lgsm
1717
ports:
1818
- "27015:27015/tcp"
1919
- "27015:27015/udp"

0 commit comments

Comments
 (0)