Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
murzart authored Oct 19, 2022
1 parent bfa977b commit afc247e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,24 @@ $ docker run -d --net=host -e SERVER_NAME="MyCustomServerName" -e PASSWORD_ACTIV
```


Running multiple instances (iterate PORT and PORT_STEAM_BROWSER):<br/>
```console
$ docker run -d --net=host -v /home/steam/PerfectHeist2Server-dedicated/ -e PORT=7787 -e PORT_STEAM_BROWSER=27027 --name=ph2-dedicated ghcr.io/murzart/perfectheist2
```

## Hosting a simple game server with custom name and password
Running on the *host* interface (recommended):<br/>
```console
$ docker run -d --net=host -e SERVER_NAME="MyCustomServerName" -e PASSWORD_ACTIVE=true -e PASSWORD="MySecurePassword" -e MAP="NewYorkCity" -v /home/steam/PerfectHeist2Server-dedicated/ --name=ph2-dedicated ghcr.io/murzart/perfectheist2
```


## Hosting a simple game server with a custom map
Running on the *host* interface (recommended):<br/>
```console
$ docker run -d --net=host -e SERVER_NAME="MyCustomServerName" -e PASSWORD_ACTIVE=true -e PASSWORD="MySecurePassword" -e MAP="CustomMap" -e WORKSHOP_MAP_ID="2802827661" -v /home/steam/PerfectHeist2Server-dedicated/ --name=ph2-dedicated ghcr.io/murzart/perfectheist2
```

### docker-compose.yml example
```dockerfile
version: '3.9'
Expand Down Expand Up @@ -78,4 +96,5 @@ SERVER_OWNER_ID=
MAX_PLAYERS=16
PICKTIME=20
SPECTATORS=false
WORKSHOP_MAP_ID=
```

0 comments on commit afc247e

Please sign in to comment.