<?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: castellanovargasdavid-beep</title>
    <description>The latest articles on DEV Community by castellanovargasdavid-beep (@castellanovargasdavidbeep).</description>
    <link>https://dev.to/castellanovargasdavidbeep</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%2F4104872%2F0e67b9d8-115e-49ec-a577-c79cd1ab4785.png</url>
      <title>DEV Community: castellanovargasdavid-beep</title>
      <link>https://dev.to/castellanovargasdavidbeep</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/castellanovargasdavidbeep"/>
    <language>en</language>
    <item>
      <title>Solución de errores "Puerto ya asignado" y YAML en Docker Compose (100% en el navegador)</title>
      <dc:creator>castellanovargasdavid-beep</dc:creator>
      <pubDate>Thu, 10 Sep 2026 14:22:51 +0000</pubDate>
      <link>https://dev.to/castellanovargasdavidbeep/solucion-de-errores-puerto-ya-asignado-y-yaml-en-docker-compose-100-en-el-navegador-539f</link>
      <guid>https://dev.to/castellanovargasdavidbeep/solucion-de-errores-puerto-ya-asignado-y-yaml-en-docker-compose-100-en-el-navegador-539f</guid>
      <description>&lt;p&gt;Every developer who deploys local containers or manages a homelab has run into this error at some point:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Error response from daemon: ports are not available: exposing port TCP 0.0.0.0:5432 -&amp;gt; 0.0.0.0:0: listen tcp 0.0.0.0:5432: &lt;span class="nb"&gt;bind&lt;/span&gt;: address already &lt;span class="k"&gt;in &lt;/span&gt;use

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You install a new service, merge two &lt;code&gt;docker-compose.yml&lt;/code&gt; snippets from a tutorial, or try running an isolated PostgreSQL instance alongside your main development environment—and suddenly your whole stack refuses to boot because two services compete for the exact same host port.&lt;/p&gt;

&lt;p&gt;Most linters flag schema syntax errors, but few point out host-level port collisions or offer an automated fix without requiring terminal plugins.&lt;/p&gt;

&lt;p&gt;To fix this friction, I built &lt;strong&gt;Doctor Compose&lt;/strong&gt;: a lightweight, client-side tool to validate and auto-repair Compose configurations.&lt;/p&gt;




&lt;h3&gt;
  
  
  What it analyzes
&lt;/h3&gt;

&lt;p&gt;Paste your raw Compose YAML into the browser, and the validator immediately runs these checks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Host Port Collisions:&lt;/strong&gt; Scans host mappings across all declared services. If two containers bind to &lt;code&gt;5432:5432&lt;/code&gt;, it catches the conflict and gives you a one-click button to increment the host port (e.g., &lt;code&gt;5433:5432&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Insecure Defaults:&lt;/strong&gt; Flags default credentials commonly left in boilerplate templates (&lt;code&gt;admin&lt;/code&gt;, &lt;code&gt;password&lt;/code&gt;, &lt;code&gt;root&lt;/code&gt;) and generates cryptographically secure alternatives on the fly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deprecated Directives:&lt;/strong&gt; Cleans up legacy keys like top-level &lt;code&gt;version: '3.8'&lt;/code&gt;, which Compose v2 treats as obsolete and causes annoying CLI warnings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Exposed Port Surface:&lt;/strong&gt; Displays an immediate breakdown of all exposed host ports, helping you prevent accidental public exposure.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  100% Client-Side: Zero Backend, Complete Privacy
&lt;/h3&gt;

&lt;p&gt;A Compose file often contains architectural layouts, private service names, internal network definitions, and environment variables. Sending that configuration to a third-party server API is an obvious security and privacy risk.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Doctor Compose runs entirely inside your browser:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Parsing, linting, and patching happen locally using client-side JavaScript.&lt;/li&gt;
&lt;li&gt;Not a single line of your configuration ever leaves your machine.&lt;/li&gt;
&lt;li&gt;No accounts, sign-ups, or remote APIs required.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Try the tool and verified stacks
&lt;/h3&gt;

&lt;p&gt;You can test your own Compose configurations here:&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://altfreestack.com" rel="noopener noreferrer"&gt;Doctor Compose: In-Browser Docker Compose Linter &amp;amp; Auto-Fixer&lt;/a&gt;&lt;/strong&gt; &lt;em&gt;(Sustituye por la URL exacta de la herramienta)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This tool is part of &lt;strong&gt;&lt;a href="https://altfreestack.com" rel="noopener noreferrer"&gt;AltFreeStack&lt;/a&gt;&lt;/strong&gt;, a curated directory where I document over 120+ battle-tested open-source self-hosted stacks, organized with direct deployment configs and resource requirements.&lt;/p&gt;




&lt;h3&gt;
  
  
  What rule should I add next?
&lt;/h3&gt;

&lt;p&gt;I am actively expanding the automated validation engine. Next on the roadmap:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Missing named volumes declared under the top-level &lt;code&gt;volumes:&lt;/code&gt; key.&lt;/li&gt;
&lt;li&gt;Trailing slash inconsistencies in path mappings.&lt;/li&gt;
&lt;li&gt;Circular service dependencies inside &lt;code&gt;depends_on&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What is the most frustrating Docker Compose misconfiguration or error you run into regularly? Let me know in the comments below!&lt;/p&gt;

</description>
      <category>devops</category>
      <category>docker</category>
      <category>webdev</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
