Platform independent.
(for 3.7.6 - see the example)
-
Install DOCKER
-
git clone https://github.com/stayintarkov/SIT.Docker
-
cd SIT.Docker
-
Build the server (example for SIT 1.5.1):
docker build \ --build-arg SIT=022caac252205e1b9ca30b3610884ad1b05d0dc1 \ --build-arg SPT=40b999d04c68f1f52ab152d163c086a1c50f489b \ --label SITCoop \ -t sitcoop .
Same, but in one line:
docker build --build-arg SIT=022caac252205e1b9ca30b3610884ad1b05d0dc1 --build-arg SPT=40b999d04c68f1f52ab152d163c086a1c50f489b --label SITCoop -t sitcoop .
Windows dont handle the \, use the oneliner!
-
Run the image once:
docker run --pull=never -v $PWD/server:/opt/server -p 6969:6969 -p 6970:6970 -it --name sitcoop sitcoop
⚠️ If you don't set the -v (volume), you won't be able to do a required step!
-
Go to your
./server
directory, deletedelete_me
, and optionally install additional mods, make config changes, etc.Using
-p6969:6969
, you expose the port to0.0.0.0
(meaning: open for LAN, localhost, VPN address, etc).You can specify
-p 192.168.12.34:6969:6969
for each port if you don't want the ports to listen on all interfaces. -
Start your server...
docker start sitcoop
- ... wait a few seconds, then you can connect to
http://YOUR_IP:6969
Let me know if there are any. Feel free to submit a PR.