Use the following example docker-compose file in parallel with the Dockerfile and run docker-compose up -d for a detached background server. You can find exactly where using docker inspect on the running container. If that is not mapped to a host directory as done with -v, it will go into /var/lib/docker/volumes. The $STEAMAPPDIR is declared as a volume so that the savegames and the config of the server can be accessed and modified from outside the container. #RUN: mkdir data docker run -p 15000:15000/udp -p 7777:7777/udp -p 15777:15777/udp -d -name=satisfactory -v $(pwd)/data:/home/steam/Satisfactory-dedicated satisfactory ENV STEAMAPPID 1690800 ENV STEAMAPP SatisfactoryĮNV STEAMAPPDIR " $ CMD EXPOSE 15777/udp 15000/udp 7777/udp With that in mind, to log to disk rather than the journal, add these directives:įROM cm2network/steamcmd:root #BUILD: docker build -t satisfactory. That configuration is beyond the scope of this article. Bear in mind that if you do so, the log files will grow without limit if you do not also set up a log rotation scheme such as configuring logrotated to archive and rotate logs for you. If you do not wish for this to happen, and would rather have log and error messages sent to files on disk, you can add the following two directives to the section of the Unit file. The above configuration will have the server logs written to the system Journal. A Dedicated Server is an optimized version of Don't Starve Together (DST) that has been designed to be run for longer periods. If you're looking for a guide to running the latest release with caves, visit the guides for all systems1. ![]() Description = Satisfactory dedicated server Wants = network-online.target After = syslog.target network.target nss-lookup.target network-online.target Environment = "LD_LIBRARY_PATH=./linu圆4" ExecStartPre = /usr/games/steamcmd +force_install_dir "/home/your_user/SatisfactoryDedicatedServer" +login anonymous +app_update 1690800 validate +quit ExecStart = /home/your_user/SatisfactoryDedicatedServer/FactoryServer.sh User = your_user Group = your_user StandardOutput = journal Restart = on-failure WorkingDirectory = /home/your_user/SatisfactoryDedicatedServer WantedBy = multi-user.target NOTE: As of December 5, 2015, this guide applies to versions of Don't Starve Together (DST) prior to the official release of caves into the main release branch. The unit file should be placed at /etc/systemd/system/rvice Edit the user and path to reflect the location and owner of the Satisfactory installation. It will also start the server when the host is rebooted. The following systemd unit file for the Satisfactory service will automatically use SteamCMD to check for updates any time the server is started or restarted. ![]() ![]() Once done, some small preparations for Systemd must be made defining the service and configuring it. Systemd is the service management system installed for many Linux distributions.Įnsure SteamCMD is installed. How this is handled differs between Linux and Windows operating systems, so make sure you use the correct section for your environment. Running the dedicated server as a Service allows your server to auto-restart in the event of a crash, as well as automatically start after booting.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |