<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Matheus Toledo</title>
    <description>The latest articles on DEV Community by Matheus Toledo (@toledkrw).</description>
    <link>https://dev.to/toledkrw</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F915907%2Fa9efc45b-a1e6-4b39-b16f-7b947e4c0ca9.jpg</url>
      <title>DEV Community: Matheus Toledo</title>
      <link>https://dev.to/toledkrw</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/toledkrw"/>
    <language>en</language>
    <item>
      <title>I containerised a Romestead server because my friend never opened his</title>
      <dc:creator>Matheus Toledo</dc:creator>
      <pubDate>Fri, 10 Jul 2026 02:37:02 +0000</pubDate>
      <link>https://dev.to/toledkrw/i-containerised-a-romestead-server-because-my-friend-never-opened-his-4gk4</link>
      <guid>https://dev.to/toledkrw/i-containerised-a-romestead-server-because-my-friend-never-opened-his-4gk4</guid>
      <description>&lt;p&gt;I wanted to play &lt;a href="https://romestead.wiki.gg/" rel="noopener noreferrer"&gt;Romestead&lt;/a&gt;. My friend had the server on his machine. My friend was never online.&lt;/p&gt;

&lt;p&gt;So I stopped waiting and moved it somewhere that is always on.&lt;/p&gt;

&lt;p&gt;The setup is nothing clever — it's the same shape I already use for my seasonal Minecraft servers: a &lt;code&gt;.docker/&lt;/code&gt; folder holding the &lt;code&gt;Dockerfile&lt;/code&gt; and &lt;code&gt;compose.yml&lt;/code&gt;, and a sibling &lt;code&gt;server/&lt;/code&gt; directory bind-mounted into the container. The image carries only the .NET 8 runtime; the game files live outside it, so updating the server never means rebuilding the image, and rebuilding the image never touches the saved worlds.&lt;/p&gt;

&lt;p&gt;Two things cost me more time than the rest combined:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;dotnet-install.sh&lt;/code&gt; doesn't give you everything.&lt;/strong&gt; It unpacks the portable runtime and stops there. On a slim Debian base you still need ICU and OpenSSL, or the server throws on startup.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Docker doesn't set &lt;code&gt;$HOME&lt;/code&gt; when you switch users.&lt;/strong&gt; Even after &lt;code&gt;useradd -m&lt;/code&gt;, &lt;code&gt;$HOME&lt;/code&gt; stays &lt;code&gt;/&lt;/code&gt;. Romestead bundles the GameAnalytics SDK, which builds its data directory from &lt;code&gt;$HOME&lt;/code&gt; — so it tried to create &lt;code&gt;/GameAnalytics&lt;/code&gt; at the filesystem root, the unprivileged user couldn't write there, and the server died in a restart loop. One &lt;code&gt;ENV HOME=/home/steam&lt;/code&gt; and it was over.&lt;/p&gt;

&lt;p&gt;It's on GitHub: &lt;strong&gt;&lt;a href="https://github.com/toledkrw/romestead_dedicated_server" rel="noopener noreferrer"&gt;toledkrw/romestead_dedicated_server&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Pair it with a &lt;a href="https://playit.gg/" rel="noopener noreferrer"&gt;playit.gg&lt;/a&gt; tunnel and you're up. One warning: the client won't connect through the tunnel's hostname — hand your players the proxy's IPv4 address instead.&lt;/p&gt;

&lt;p&gt;My friend still hasn't logged in.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>docker</category>
      <category>dotnet</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
