Coder Social home page Coder Social logo

ryanrhughes / stationeers-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ralyon76/stationeers-server

0.0 0.0 0.0 96 KB

Docker image to deploy a dedicated Stationeers server. https://store.steampowered.com/app/544550/Stationeers/

License: MIT License

Shell 82.49% Dockerfile 17.51%

stationeers-server's Introduction

Stationeers server that runs inside a Docker container

This project is hosted at https://github.com/ralyon76/stationeers-server

Docker image info

The image is located on github's repository at ghcr.io/ralyon76/stationeers-server.

Making a volume for the install directory will keep the data stored between restarts, helping speed up startup and retaining save information. It should be mounted at /home/steam/stationeers and needs to be writeable by the steam user id 1000.

This image will install/update stationeers when it starts up and requires at about 3G of space and will grow with the server saves. On the first start, it will take several minutes to load as it downloads the dedicated server files from steam.

With no environment variables set, it will create a new save on Mars at Easy difficulty that is NOT advertised in the public server list. Make sure to look over the Environment variables below to adjust the server settings for your use.

If you want to play with friends over the Internet and are behind NAT make sure that the UDP port (27016 is the default unless changed in the environment vairable) is forwarded to the container host. Also ensure it is publicly accessible in any firewall.

How to run the server from Docker CLI

Make sure to adjust the port and environment variables for your setup

mkdir -p $HOME/stationeers
chown 1000.1000 $HOME/stationeers
docker run -d \
  --name stationeers-server \
  -p 27016:27016/udp \
  -v $HOME/stationeers:/home/steam/stationeers \
  -e SERVER_NAME="A_Docker_Server" \
  -e WORLD_TYPE="mars" \
  ghcr.io/ralyon76/stationeers-server

How to run the server in Docker Compose

After downloading the yaml file, make sure to edit the port and environment variables for your setup and that any true/false values are quoted (due to compose restrictions).

mkdir -p $HOME/stationeers/data
chown 1000.1000 $HOME/stationeers/data
cd $HOME/stationeers/
curl -o $HOME/stationeers/docker-compose.yml https://raw.githubusercontent.com/ralyon76/stationeers-server/main/docker-compose.yml
nano docker-compose.yml #Edit file accordingly
docker-compose up

Environment variables

All variable names and values are case-sensitive! Spaces are not supported and will be converted to _ in names and removed in passwords!

Name Default Purpose
SERVER_NAME A_Docker_Server Publicly visible server name
WORLD_TYPE mars World type, mainly used for world type to start a new game
WORLD_NAME Mars World name, mainly used for save names etc.
STATIONEERS_VERSION Set to beta if you want to install the beta branch, anything else will run stable
SERVER_PLAYERS 10 Set the max number of players that can connect
SERVER_AUTO_SAVE true Set to false if you do not want the server automatically saving
SERVER_SAVE_INTERVAL 300 Automatic save interval in seconds
SERVER_DIFFICULTY Normal Set difficulty level to Easy, Normal or Stationeer
GAME_PORT 27016 Used for both incoming client connections (Make sure this is forwarded and not firewalled)
SERVER_PASSWORD Server password
SERVER_PUBLIC false Set to true if you want your server advertised on the public list
AUTH_SECRET Set a password to use the serverrun command in the client

More detailed information on the options and commands inside the game can be found here: https://github.com/rocket2guns/StationeersDedicatedServerGuide

License

See LICENSE.

stationeers-server's People

Contributors

ralyon76 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.