Compare commits
37 Commits
Author | SHA1 | Date | |
---|---|---|---|
3597acd3be | |||
9c5be2908b | |||
08d87ba360
|
|||
2f169e1039
|
|||
61d3e9bc1d
|
|||
b232ec6d97
|
|||
d07257ed9a
|
|||
f638c638c6 | |||
9ded1e58aa | |||
f239091673 | |||
703eab1ae8 | |||
4f417f443a | |||
4a628dc44b | |||
2e57a93675 | |||
f47585295d | |||
bdad131f21 | |||
4d1dc8ff0c | |||
4efd1fa679 | |||
0551f72020 | |||
93f6621ef1 | |||
49de95dd60 | |||
57074d1631 | |||
c779d97498 | |||
744555dcc1 | |||
be34581024 | |||
3236aa3127 | |||
1d5243467a | |||
566f50c97f | |||
7b4d9ce73a | |||
14754b8625 | |||
9579648a06 | |||
71b34a1674 | |||
6c0397dd42 | |||
1af4324c74 | |||
83c8ce9cc4 | |||
5fe96b0b12 | |||
d755ec14fa |
@@ -1,10 +1,10 @@
|
||||
FROM ich777/debian-baseimage
|
||||
FROM ich777/debian-baseimage:bullseye_amd64
|
||||
|
||||
LABEL org.opencontainers.image.authors="admin@minenet.at"
|
||||
LABEL org.opencontainers.image.source="https://github.com/ich777/docker-steamcmd-server"
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get -y install --no-install-recommends lib32gcc-s1 lib32stdc++6 && \
|
||||
apt-get -y install --no-install-recommends lib32gcc-s1 && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV DATA_DIR="/serverdata"
|
||||
|
22
README.md
22
README.md
@@ -1,5 +1,5 @@
|
||||
# SteamCMD in Docker optimized for Unraid
|
||||
This Docker will download and install SteamCMD. It will also install Garry's Mod and run it.
|
||||
This Docker will download and install SteamCMD. It will also install Left4Dead and run it.
|
||||
|
||||
**Update Notice:** Simply restart the container if a newer version of the game is available.
|
||||
|
||||
@@ -8,29 +8,29 @@ This Docker will download and install SteamCMD. It will also install Garry's Mod
|
||||
| --- | --- | --- |
|
||||
| STEAMCMD_DIR | Folder for SteamCMD | /serverdata/steamcmd |
|
||||
| SERVER_DIR | Folder for gamefile | /serverdata/serverfiles |
|
||||
| GAME_ID | The GAME_ID that the container downloads at startup. If you want to install a static or beta version of the game change the value to: '4020 -beta YOURBRANCH' (without quotes, replace YOURBRANCH with the branch or version you want to install). | 4020 |
|
||||
| GAME_NAME | SRCDS gamename | garrysmod |
|
||||
| GAME_PARAMS | Values to start the server | -secure +maxplayers 12 +map gm_flatgrass |
|
||||
| GAME_ID | The GAME_ID that the container downloads at startup. If you want to install a static or beta version of the game change the value to: '222840 -beta YOURBRANCH' (without quotes, replace YOURBRANCH with the branch or version you want to install). | 222840 |
|
||||
| GAME_NAME | SRCDS gamename | left4dead |
|
||||
| GAME_PARAMS | Values to start the server | +maxplayers 4 +map l4d_farm04_barn |
|
||||
| UID | User Identifier | 99 |
|
||||
| GID | Group Identifier | 100 |
|
||||
| GAME_PORT | Port the server will be running on | 27015 |
|
||||
| VALIDATE | Validates the game data | true |
|
||||
| VALIDATE | Validates the game data | blank |
|
||||
| USERNAME | Leave blank for anonymous login | blank |
|
||||
| PASSWRD | Leave blank for anonymous login | blank |
|
||||
|
||||
## Run example
|
||||
```
|
||||
docker run --name GarrysMod -d \
|
||||
docker run --name Left4Dead -d \
|
||||
-p 27015:27015 -p 27015:27015/udp \
|
||||
--env 'GAME_ID=4020' \
|
||||
--env 'GAME_NAME=garrysmod' \
|
||||
--env 'GAME_ID=222840' \
|
||||
--env 'GAME_NAME=left4dead' \
|
||||
--env 'GAME_PORT=27015' \
|
||||
--env 'GAME_PARAMS=-secure +maxplayers 12 +map gm_flatgrass' \
|
||||
--env 'GAME_PARAMS=+maxplayers 4 +map l4d_farm04_barn' \
|
||||
--env 'UID=99' \
|
||||
--env 'GID=100' \
|
||||
--volume /path/to/steamcmd:/serverdata/steamcmd \
|
||||
--volume /path/to/garrysmod:/serverdata/serverfiles \
|
||||
ich777/steamcmd:garrysmod
|
||||
--volume /path/to/l4d:/serverdata/serverfiles \
|
||||
ich777/steamcmd:l4d
|
||||
```
|
||||
|
||||
This Docker was mainly edited for better use with Unraid, if you don't use Unraid you should definitely try it!
|
||||
|
@@ -55,4 +55,4 @@ chmod -R ${DATA_PERM} ${DATA_DIR}
|
||||
echo "---Server ready---"
|
||||
|
||||
echo "---Start Server---"
|
||||
${SERVER_DIR}/srcds_run -game ${GAME_NAME} ${GAME_PARAMS} -console +port ${GAME_PORT}
|
||||
${SERVER_DIR}/srcds_run -game ${GAME_NAME} ${GAME_PARAMS} -port ${GAME_PORT}
|
Reference in New Issue
Block a user