Skip to content

ekuland/SPT.Docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPT Server - Dockerized

Quickly set up your personal Escape from Tarkov server in just 5 minutes..

The Linux Container, that builds the server too

Why? Because everyone should be able to build, and not rely on unknown builds from unknown sources.

Platform independent.

This fork simply removes the SIT(stayintarkov) requirements to make a generic SPT server. Huge thanks to devbence/bullet for the original project.


How to use this Repo?

  1. Install DOCKER

  2. git clone https://github.com/umbraprior/SPT.Docker

  3. cd SPT.Docker

  4. Build the server for your requested version, (you can change the --build-arg to the full commit hash from the SPT/Server Gitea Page)

    Equivalent to release SPT-3.9.0-30626 (0.14.9.30626):

    docker build \
       --no-cache \
       --build-arg SPT=002209a992253888d025344f831b28077a5210d1 \
       --label SPT \
       -t spt .

    Same, but in one line:

    docker build --no-cache --build-arg SPT=002209a992253888d025344f831b28077a5210d1 --label SPT -t spt .

Caution

Windows doesn't handle the \, use the oneliner!

  1. Run the image once:

    docker run --pull=never -v $PWD/server:/opt/server -p 6969:6969 -it --name spt spt
    • ⚠️ If you don't set the -v (volume), you won't be able to do a required step!

    • 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 -it --name spt spt
  2. Go to your ./server directory, delete delete_me, and optionally install additional mods, make config changes, etc.

    Using -p6969:6969, you expose the port to 0.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.

  3. Start your server (and enable auto restart):

    docker start spt
    docker update --restart unless-stopped spt
  4. ... wait a few seconds, then you can connect to http://YOUR_IP:6969 in SPT.Launcher

Bugs and Issues

Note

Unraid seems to build the server in a separate, unlabeled image. This will use ~10G of Docker vDisk and will not be automatically removed. Remove the unlabeled image after first run.

Let me know if there are any. Feel free to submit a PR.

Releases

No releases published

Packages

 
 
 

Languages

  • Dockerfile 61.5%
  • Shell 38.5%