Space Engineers Server configured based on the CFG file in Github. Controlled via the command line.
2.3K
Docker container for running a Space Engineers server on a Linux machine.
Perform the following steps in the written order.
saiban. You can of course change this to whatever you prefer. Please note that the user ID must correspond to the ID specified in the Dockerfile. If you change it here, you should change it there.adduser --system --home /home/se-server --uid 256 --group --gecos "Space Engineers" se-server
su - se-server -s /bin/bash
cd
mkdir -p games/space-engineers/{docker,data}
mkdir -p games/space-engineers/data/Space\ Engineers/{Mods,Saves}
git clone https://github.com/g1franc/se-server.git games/space-engineers/docker
Obtain a copy of the most current DedicatedServer.zip and place it in ~/games/space-engineers/data. You will usually find it in [...]\SteamApps\SpaceEngineers\Tools\DedicatedServer.zip (do not extract its contents).
Upload your SpaceEngineers-Dedicated.cfg and place it in ~/games/space-engineers/data/Space Engineers. Use the one in this repository and edit it to your liking if you do not already have one or copy the one from the repository
:
cp ./games/space-engineers/docker/SpaceEngineers-Dedicated.cfg ./games/space-engineers/data/Space\ Engineers
space-engineers.service from this repository to /etc/systemd/system. Do not forget to change the User and Group setting in this file if you did not go with the defaults.sudo cp games/space-engineers/docker/space-engineers.service /etc/systemd/system
This will take a while.
games/space-engineers/docker/build.sh
Update Space Engineers by replacing the DedicatedServer.zip with an updated version and restarting the server.
sudo systemctl start space-engineers
sudo systemctl stop space-engineers
This will give you live output from the server, as if it was running locally in your terminal.
sudo journalctl --no-tail -f -u space-engineeers
Running Space Engineers this way requires a helper program called sigmap which I developed for this use specifically. It is cloned and built by the Dockerfile and should not add any additional overhead. Because Space Engineers ignores SIGTERM which is sent by Docker to shut down the service, sigmap catches that signal and forwards SIGINT to Space Engineers.
See here for more information.
The original Dockerfile was written by webanck and can be found here.
Content type
Image
Digest
Size
876.5 MB
Last updated
over 9 years ago
docker pull yohan460/spaceengineers-server