Added docker-compose.yml
This commit is contained in:
parent
4a5005128d
commit
309385913d
2 changed files with 45 additions and 1 deletions
|
@ -11,7 +11,7 @@ This Docker image contains the dedicated server of the game.
|
|||
# How to use this image
|
||||
## Hosting a simple game server
|
||||
|
||||
Running on the *host* interface (recommended):<br/>
|
||||
Running on the *host* interface (recommended) using Docker:<br/>
|
||||
```console
|
||||
$ docker run -d --net=host --name=cs2 -e STEAMUSER={YOUR_STEAM_USER} -e STEAMPASS={YOUR_STEAM_PASSWD} joedwards32/cs2
|
||||
```
|
||||
|
@ -23,6 +23,13 @@ $ chmod 777 $(pwd)/cs2-data # Makes sure the directory is writeable by the unpri
|
|||
$ docker run -d --net=host -v $(pwd)/cs2-data:/home/steam/cs2-dedicated/ --name=cs2-dedicated -e STEAMUSER={YOUR_STEAM_USER} -e STEAMPASS={YOUR_STEAM_PASSWD} joedwards32/cs2
|
||||
```
|
||||
|
||||
or using docker-compose:
|
||||
```console
|
||||
$ docker-compose up -d
|
||||
```
|
||||
|
||||
Remember about having at least **40GB** of free disk space!
|
||||
|
||||
`STEAMUSER` and `STEAMPASS` **are required as unlike CS:GO, CS2 can not be downloaded anonymously (at time of writing).**
|
||||
|
||||
`STEAMGUARD` **must be used to provide your more recent Steam Guard key if Steam Guard is enabled on your account.**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue