<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Docker on Ponfertato</title><link>https://ponfertato.potatoenergy.ru/en/tags/docker/</link><description>Recent content in Docker 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/docker/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>Hugo: Static Site Architecture &amp; CI/CD</title><link>https://ponfertato.potatoenergy.ru/en/projects/hugo-workflow/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ponfertato.potatoenergy.ru/en/projects/hugo-workflow/</guid><description>&lt;p&gt;Using Hugo for static site generation delivers maximum performance with minimal overhead. All projects in the &lt;code&gt;*.potatoenergy.ru&lt;/code&gt; stack share a unified methodology for configuration, building, and deployment.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Core principles&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;🔹 Declarative configuration via &lt;code&gt;hugo.toml&lt;/code&gt; and &lt;code&gt;config/_default/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;🔹 Multilingual support via &lt;code&gt;translationKey&lt;/code&gt; without logic duplication&lt;/li&gt;
&lt;li&gt;🔹 Parameter inheritance via &lt;code&gt;cascade&lt;/code&gt; in front matter&lt;/li&gt;
&lt;li&gt;🔹 Asset optimization via Hugo Pipes (minification, fallbacks, hashing)&lt;/li&gt;
&lt;li&gt;🔹 Build environment isolation via Docker&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;

&lt;h2 class="relative group"&gt;🗂 Project structure
 &lt;div id="-project-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="#-project-structure" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&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-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;project/
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;├── config/_default/
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ ├── hugo.toml # Base settings: baseURL, theme, outputs
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ ├── params.toml # Global theme params and custom variables
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ ├── menus.toml # Navigation configuration
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ └── languages.*.toml # Localization: displayName, copyright, author
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;├── content/
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ ├── {section}/
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ │ ├── _index.{ru,en}.md # Listing page with section description
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ │ └── {slug}/
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ │ ├── index.{ru,en}.md # Content with translation via translationKey
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ │ └── assets/ # Page-bundled resources
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ └── _index.{ru,en}.md # Homepage
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;├── layouts/
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ ├── _default/ # Default templates: single.html, list.html
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ ├── partials/ # Reusable components: head, footer, svg
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ ├── shortcodes/ # Custom shortcodes: audio, toggle, icon
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;│ └── shortcodes/ # Theme template overrides (if needed)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;├── static/ # Files copied as-is: robots.txt, favicons
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;├── assets/ # Hugo Pipes sources: CSS/JS for processing
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;└── docker-compose.yml # Local development environment&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;hr&gt;

&lt;h2 class="relative group"&gt;🌐 Multilingual without duplication
 &lt;div id="-multilingual-without-duplication" 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="#-multilingual-without-duplication" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Translation linking is handled via &lt;code&gt;translationKey&lt;/code&gt; in front matter:&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><item><title>Source Servers on ARM64: Docker Images for Games</title><link>https://ponfertato.potatoenergy.ru/en/projects/source-servers-arm64/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ponfertato.potatoenergy.ru/en/projects/source-servers-arm64/</guid><description>&lt;p&gt;A series of Docker images for running Source Engine servers on ARM64 architectures (Orange Pi, Raspberry Pi 4/5, AWS Graviton).&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Repository&lt;/th&gt;
 &lt;th&gt;Game&lt;/th&gt;
 &lt;th&gt;Tags&lt;/th&gt;
 &lt;th&gt;Image Size&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;a href="https://github.com/potatoenergy/garrysmod-docker" target="_blank" rel="noreferrer"&gt;garrysmod-docker&lt;/a&gt;&lt;/td&gt;
 &lt;td&gt;Garry&amp;rsquo;s Mod&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;latest&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;~2.1 GB&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;a href="https://github.com/potatoenergy/tf2-docker" target="_blank" rel="noreferrer"&gt;tf2-docker&lt;/a&gt;&lt;/td&gt;
 &lt;td&gt;Team Fortress 2&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;latest&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;~1.8 GB&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;a href="https://github.com/potatoenergy/css-docker" target="_blank" rel="noreferrer"&gt;css-docker&lt;/a&gt;&lt;/td&gt;
 &lt;td&gt;Counter-Strike: Source&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;latest&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;~1.6 GB&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;a href="https://github.com/potatoenergy/l4d2-docker" target="_blank" rel="noreferrer"&gt;l4d2-docker&lt;/a&gt;&lt;/td&gt;
 &lt;td&gt;Left 4 Dead 2&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;latest&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;~2.3 GB&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;a href="https://github.com/potatoenergy/hl2dm-docker" target="_blank" rel="noreferrer"&gt;hl2dm-docker&lt;/a&gt;&lt;/td&gt;
 &lt;td&gt;Half-Life 2: Deathmatch&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;latest&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;~1.5 GB&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;a href="https://github.com/potatoenergy/dods-docker" target="_blank" rel="noreferrer"&gt;dods-docker&lt;/a&gt;&lt;/td&gt;
 &lt;td&gt;Day of Defeat: Source&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;latest&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;~1.6 GB&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;a href="https://github.com/potatoenergy/l4d-docker" target="_blank" rel="noreferrer"&gt;l4d-docker&lt;/a&gt;&lt;/td&gt;
 &lt;td&gt;Left 4 Dead&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;latest&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;~2.0 GB&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;All images share a unified build and configuration architecture.&lt;/p&gt;</description></item></channel></rss>