mmmaxwwwell/space-engineers-dedicated-docker-linux
All of the space engineers dedicated server on wine containers I found wouldn't build, and I embarked on a journey to create my own.
Features:
- Wine 6
- Debian Buster
- Installs default star system world on first run
- Automatically updates
<LoadWorld>
element inSpaceEngineers-Dedicated.cfg
- Supports plugins.
- Image built and available on dockerhub
- Easy to implement offsite backups, just copy everything in
./appdata/space-engineers/config
with your favorite backup tool. - Reduced container size (~4gb decompressed).
Thank you to:
- 7thCore for 7thCore/sesrv-script
- Devidian for advancing the docker implementation to a working state!
- @Inflex for
- @Tsu, @Aedis, @ebbit, @data, @ReAn, @BloodyIron, @spawnAjak for all around helping when testing and getting this started
- @UseAfterFreee, @woeisme, @kennethx, @MarkL4YG, @BaIthamel, @Tetrino, @Teacay1, @Fischchen, @whodat, @msansen, @IndexOutOfMJ for opening issues or contributing to an issue conversation that improved the repo.
Prerequisites:
- docker
- docker-compose (recommended, not required to run container)
- unzip
Tips:
- You can copy the entire contents of ./appdata/space-engineers/config to make a backup, including the SpaceEngineers-Dedicated.cfg file.
- The
./start
script will start the server using docker-compose in detached mode, and then attaches to the log output. You can press ctrl+c to detach from the logs and keep the server running. - If you are running plugins, the first time your run this, check your SpaceEngineers-Dedicated.cfg file for the Plugins element. If it spans multiple lines, you must replace it with
<Plugins />
, exactly like that. The server will query ./appdata/space-engineers/config/Plugins and update the config file as needed from then on. - If you start the docker container without placing SpaceEngineers-Dedicated.cfg in the correct location, docker will create an empty folder where it should be. The container won't run until you stop the container, delete the empty SpaceEngineers-Dedicated.cfg folder, and replace it with the actual file.
Usage:
-RECOMENDED- Pull from dockerhub and run with docker-compose
- Clone this repo with
git clone https://github.com/mmmaxwwwell/space-engineers-dedicated-docker-linux.git
. - Change directory into the cloned repo with
cd space-engineers-dedicated-docker-linux
. - Run the start script with
./start
. This will initialize the ./appdata folder, unzip an empty star system from star-system.zip and start the server.
Pull and run from dockerhub without docker-compose:
From this directory run :
docker run --restart always -p "27016:27016/udp" \
-v $(pwd)/appdata/space-engineers/config/World:/appdata/space-engineers/World\
-v $(pwd)/appdata/space-engineers/bins/SpaceEngineersDedicated:/appdata/space-engineers/SpaceEngineersDedicated\
-v $(pwd)/appdata/space-engineers/bins/steamcmd:/home/se/.steam\
-v $(pwd)/appdata/space-engineers/config/SpaceEngineers-Dedicated.cfg:/appdata/space-engineers/SpaceEngineersDedicated/SpaceEngineers-Dedicated.cfg\
mmmaxwwwell/space-engineers-dedicated-docker-linux:latest
Exit Codes:
Exit Code | Reason |
---|---|
129 | Container is missing /appdata/space-engineers/World folder, volume mounts are mounted incorrectly. |
130 | Container is missing /appdata/space-engineers/World/Sandbox.sbc, World is not placed in the right folder, or the volume mounts are mounted incorrectly. Ensure your world is in ./appdata/space-engineers/config/World/ . |
131 | Container is missing the dedicated server config file SpaceEngineers-Dedicated.cfg. Ensure that you have placed SpaceEngineers-Dedicated.cfg at ./appdata/space-engineers/config/SpaceEngineers-Dedicated.cfg . |
Directory Structure:
SpaceEngineersDedicated contains the dedicated server files
steamcmd contains steamcmd
config contains all the user configurable files for the game instance
World contains the world files
appdata
βββ space-engineers
βββ bins
βΒ Β βββ SpaceEngineersDedicated
βΒ Β βββ steamcmd
βββ config
βββ SpaceEngineers-Dedicated.cfg
βββ World
βββ Alien-291759539d120000.vx2
βββ EarthLike-1779144428d120000.vx2
βββ Europa-595048092d19000.vx2
βββ Mars-2044023682d120000.vx2
βββ Moon-1353915701d19000.vx2
βββ SANDBOX_0_0_0_.sbs
βββ Sandbox.sbc
βββ Sandbox_config.sbc
βββ Titan-2124704365d19000.vx2
βββ Triton-12345d80253.vx2
βββ thumb.jpg