2018-12-18 16:51:57 +00:00
|
|
|

|
|
|
|
|

|
2018-12-18 13:59:42 +00:00
|
|
|
## How to build
|
|
|
|
|
cd directory where ```Dockerfile```
|
2021-04-22 18:43:28 +00:00
|
|
|
```docker build -t sandstorm:latest .``` or get it on docker hub ```docker pull andrewmhub/insurgency-sandstorm```
|
2018-12-18 13:59:42 +00:00
|
|
|
## How to launch
|
2021-04-18 07:43:08 +00:00
|
|
|
Running multiple instances (use PORT, QUERYPORT and HOSTNAME) and LAUNCH_SERVER_ENV in modmap.env:
|
2018-12-18 13:59:42 +00:00
|
|
|
```
|
2021-04-18 07:33:16 +00:00
|
|
|
docker run -d --restart always --env-file /home/user/coop-modmap/modmap.env \
|
|
|
|
|
--name sandstorm-modmap -p 12345:12345/udp -p 54321:54321/udp \
|
|
|
|
|
-v /home/user/coop-modmap/Mods:/home/steam/steamcmd/sandstorm/Insurgency/Mods:rw \
|
|
|
|
|
-v /home/user/coop-modmap/config/ini:/home/steam/steamcmd/sandstorm/Insurgency/Saved/Config/LinuxServer:ro \
|
|
|
|
|
-v /home/user/coop-modmap/config/txt:/home/steam/steamcmd/sandstorm/Insurgency/Config/Server:ro sandstorm:latest
|
2018-12-18 13:59:42 +00:00
|
|
|
```
|
2018-12-18 16:31:31 +00:00
|
|
|
Examples config files see directory ```config```
|
2018-12-18 16:30:26 +00:00
|
|
|
|
2021-04-18 07:32:12 +00:00
|
|
|
### Official documentation: [Server Admin Guide](https://sandstorm-support.newworldinteractive.com/hc/en-us/articles/360049211072-Server-Admin-Guide)
|
2018-12-20 07:39:17 +00:00
|
|
|
#### Source in github: [Insurgency: Sandstorm docker server](https://github.com/AndrewMarchukov/insurgency-sandstorm-server-dockerize)
|
2021-04-22 18:59:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
### docker-compose.yml example
|
|
|
|
|
```dockerfile
|
|
|
|
|
version: '3.7'
|
|
|
|
|
services:
|
|
|
|
|
insurgency-sandstorm:
|
|
|
|
|
image: andrewmhub/insurgency-sandstorm:latest
|
|
|
|
|
container_name: insurgency-sandstorm
|
|
|
|
|
restart: unless-stopped
|
2021-04-22 19:00:46 +00:00
|
|
|
env_file:
|
|
|
|
|
- .env
|
2021-04-22 18:59:13 +00:00
|
|
|
volumes:
|
|
|
|
|
- /home/user/coop-modmap/config/ini:/home/steam/steamcmd/sandstorm/Insurgency/Saved/Config/LinuxServer:ro
|
|
|
|
|
- /home/user/coop-modmap/config/txt:/home/steam/steamcmd/sandstorm/Insurgency/Config/Server:ro
|
|
|
|
|
- /home/user/coop-modmap/Mods:/home/steam/steamcmd/sandstorm/Insurgency/Mods:rw
|
|
|
|
|
ports:
|
|
|
|
|
- "${PORT}:${PORT}"
|
|
|
|
|
- "${QUERYPORT}:${QUERYPORT}"
|
|
|
|
|
```
|
2021-04-22 19:00:46 +00:00
|
|
|
### .env example
|
|
|
|
|
|
|
|
|
|
```.env
|
|
|
|
|
HOSTNAME=[ISMC] MOD MAPS ONLY @120hz
|
|
|
|
|
PORT=12345
|
|
|
|
|
QUERYPORT=54321
|
|
|
|
|
LAUNCH_SERVER_ENV=-MapCycle=MapCycle -Mods ModList=Mods.txt -mutators=ISMCarmory_legacy,ImprovedAI,NoRestrictedArea,ScaleBotAmount,AdvancedSupplyPoints,WelcomeMessage,JoinLeaveMessage,FpLegs,JumpShoot -GameStatsToken=my_token -GameStats -GSLTToken=my_token -ModDownloadTravelTo=TORO?Scenario=Scenario_TORO_Checkpoint_Security
|
|
|
|
|
```
|