Platform independent.
-
Install DOCKER
-
git clone https://github.com/stayintarkov/SIT.Docker
-
cd SIT.Docker
-
Create a folder for your server, if running as user!
mkdir server
-
Build: Equivalent to (pre)release
SITCoop-1.6.5-WithAki-3.8.3-449288
:docker build \ --no-cache \ --build-arg SIT=a728b0b1ff21b14774362418d35f14ec523265cc \ --build-arg SPT=4492882bba506f5751a1f600f3ae60275ad27e64 \ --label SITCoop \ -t sitcoop .
docker build --no-cache --build-arg SIT=a728b0b1ff21b14774362418d35f14ec523265cc --build-arg SPT=4492882bba506f5751a1f600f3ae60275ad27e64 --label SITCoop -t sitcoop .
For version SITCoop-1.5.1 (0.13.9.1.27622), go here
-
Run the image once, to populate server folder:
⚠️ IF UPGRADING, usedocker run -e FORCE=y [..rest of the command..]
docker run --pull=never -v $PWD/server:/opt/server -p 6969:6969 -p 6970:6970 -p 6971:6971 -it --name sitcoop sitcoop
-
⚠️ If you don't set the -v (volume), you will not have access to your files. -
On Linux you can include
--user $(id -u):$(id -g)
, this way, file ownership will be set to the user who started the container.
docker run --pull=never --user $(id -u):$(id -g) -v $PWD/server:/opt/server -p 6969:6969 -p 6970:6970 -p 6971:6971 -it --name sitcoop sitcoop
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 it to listen on all interfaces.
- Start your server (and enable auto restart):
docker start sitcoop
docker update --restart unless-stopped 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.