<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Infrastructure on Ponfertato</title><link>https://ponfertato.potatoenergy.ru/en/tags/infrastructure/</link><description>Recent content in Infrastructure on Ponfertato</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© 2019-2026 Ponfertato</copyright><atom:link href="https://ponfertato.potatoenergy.ru/en/tags/infrastructure/index.xml" rel="self" type="application/rss+xml"/><item><title>Docker Configuration Evolution: From Scattered Containers to Managed Stacks</title><link>https://ponfertato.potatoenergy.ru/en/projects/docker-evolution/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ponfertato.potatoenergy.ru/en/projects/docker-evolution/</guid><description>&lt;p&gt;Previously, each service lived in a separate repository with minimal &lt;code&gt;docker-compose.yml&lt;/code&gt;:&lt;/p&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Old approach: garrysmod-server/&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;services&lt;/span&gt;:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;garrysmod-server&lt;/span&gt;:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;image&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;ceifa/garrysmod:latest&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;ports&lt;/span&gt;:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; - &lt;span style="color:#e6db74"&gt;&amp;#34;27015:27015&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;volumes&lt;/span&gt;:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; - &lt;span style="color:#ae81ff"&gt;./garrysmod:/data&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;restart&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;unless-stopped&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Problems&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;❌ No resource control - one service could consume all memory&lt;/li&gt;
&lt;li&gt;❌ No health checks - crashed services went undetected&lt;/li&gt;
&lt;li&gt;❌ No log rotation - logs grew until disk full&lt;/li&gt;
&lt;li&gt;❌ No network isolation - all services in &lt;code&gt;default&lt;/code&gt; network&lt;/li&gt;
&lt;li&gt;❌ Manual per-service updates - high risk of human error&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;

&lt;h2 class="relative group"&gt;New Approach: Stacks with Explicit Contracts
 &lt;div id="new-approach-stacks-with-explicit-contracts" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#new-approach-stacks-with-explicit-contracts" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Now related services are grouped into a single repository with unified configuration:&lt;/p&gt;</description></item><item><title>Many Projects. One Structure. No Chaos.</title><link>https://ponfertato.potatoenergy.ru/en/projects/philosophy/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ponfertato.potatoenergy.ru/en/projects/philosophy/</guid><description>&lt;p&gt;When you have more than ten projects, questions arise:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Where is the config for this service?&lt;/li&gt;
&lt;li&gt;Which environment variable to set on deploy?&lt;/li&gt;
&lt;li&gt;Why does one container consume all memory while another stays silent on crash?&lt;/li&gt;
&lt;li&gt;How to quickly deploy all this on a new machine?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Answer: &lt;strong&gt;unified structure, unified rules, unified approach&lt;/strong&gt;.&lt;/p&gt;
&lt;hr&gt;

&lt;h2 class="relative group"&gt;🗂 Unified Repository Structure
 &lt;div id="-unified-repository-structure" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#-unified-repository-structure" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Every active project follows one template:&lt;/p&gt;</description></item></channel></rss>