<?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: Youssef Ayman</title>
    <description>The latest articles on DEV Community by Youssef Ayman (@youssef_ayman_c4cb65afabe).</description>
    <link>https://dev.to/youssef_ayman_c4cb65afabe</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2698943%2F342e0589-acc3-4e01-aea0-654c61b979d7.png</url>
      <title>DEV Community: Youssef Ayman</title>
      <link>https://dev.to/youssef_ayman_c4cb65afabe</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/youssef_ayman_c4cb65afabe"/>
    <language>en</language>
    <item>
      <title>🧙‍♂️ Docker Wizard: Because Setting Up Dev Environments Shouldn't Feel Like Dark Magic</title>
      <dc:creator>Youssef Ayman</dc:creator>
      <pubDate>Mon, 02 Mar 2026 21:03:33 +0000</pubDate>
      <link>https://dev.to/youssef_ayman_c4cb65afabe/docker-wizard-because-setting-up-dev-environments-shouldnt-feel-like-dark-magic-18ca</link>
      <guid>https://dev.to/youssef_ayman_c4cb65afabe/docker-wizard-because-setting-up-dev-environments-shouldnt-feel-like-dark-magic-18ca</guid>
      <description>&lt;p&gt;Ever found yourself copy-pasting docker-compose snippets from Stack Overflow at 2 AM, trying to remember if PostgreSQL needs port 5432 or 5433? Yeah, me too. That's why I built &lt;strong&gt;Docker Wizard&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  🎯 The Problem (AKA Developer Pain Points)
&lt;/h2&gt;

&lt;p&gt;Picture this: You're starting a new project. You need a database, maybe Redis for caching, probably RabbitMQ because microservices are cool, and oh yeah—a reverse proxy would be nice. So you:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;🔍 Google "postgres docker-compose example"&lt;/li&gt;
&lt;li&gt;📋 Copy-paste some YAML you don't fully understand&lt;/li&gt;
&lt;li&gt;🤞 Hope the port mappings don't conflict with that other project you forgot to shut down&lt;/li&gt;
&lt;li&gt;😱 Realize you need volumes for persistence&lt;/li&gt;
&lt;li&gt;🔄 Repeat for each service&lt;/li&gt;
&lt;li&gt;☕ Your coffee is cold and you haven't written a line of actual code yet&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;There had to be a better way.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  💡 The Solution: A Wizard That Actually Works
&lt;/h2&gt;

&lt;p&gt;Docker Wizard is a CLI/TUI tool written in Go that scaffolds your entire Docker development stack through an interactive, step-by-step wizard. It:&lt;/p&gt;

&lt;p&gt;✨ &lt;strong&gt;Detects your project language&lt;/strong&gt; (Go, Node, Python, Ruby, PHP, Java, .NET)&lt;br&gt;&lt;br&gt;
🎨 &lt;strong&gt;Generates a production-ready Dockerfile&lt;/strong&gt; tailored to your stack&lt;br&gt;&lt;br&gt;
🛠️ &lt;strong&gt;Lets you pick services by category&lt;/strong&gt; (databases, queues, cache, proxies)&lt;br&gt;&lt;br&gt;
📦 &lt;strong&gt;Spits out a complete docker-compose.yml&lt;/strong&gt; with sensible defaults&lt;br&gt;&lt;br&gt;
🔄 &lt;strong&gt;Merges with existing files&lt;/strong&gt; instead of nuking them (your customizations are safe!)  &lt;/p&gt;

&lt;h2&gt;
  
  
  🎪 The Fun Part: Why This Tech Stack?
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Why Go?
&lt;/h3&gt;

&lt;p&gt;Because I needed something fast, compiled, and cross-platform. Also, Go's standard library is chef's kiss 👨‍🍳💋 for file operations and CLI tools. Plus, goroutines made the terminal animations smooth as butter.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why Bubble Tea for the TUI?
&lt;/h3&gt;

&lt;p&gt;Have you &lt;em&gt;seen&lt;/em&gt; how gorgeous Bubble Tea UIs are? It's like the React of terminal interfaces. I wanted developers to actually &lt;em&gt;enjoy&lt;/em&gt; running this tool. Also, the Elm architecture pattern keeps the code maintainable (future me says thanks).&lt;/p&gt;

&lt;p&gt;The TUI features:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🎨 &lt;strong&gt;Styled mode&lt;/strong&gt; with Lip Gloss animations (fancy!)&lt;/li&gt;
&lt;li&gt;📄 &lt;strong&gt;Plain mode&lt;/strong&gt; for those crusty old terminals&lt;/li&gt;
&lt;li&gt;💬 &lt;strong&gt;CLI interactive mode&lt;/strong&gt; if you hate TUIs for some reason&lt;/li&gt;
&lt;li&gt;🤖 &lt;strong&gt;Batch mode&lt;/strong&gt; for CI/CD workflows&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The Merge Logic: A Love Story
&lt;/h3&gt;

&lt;p&gt;The hardest part? &lt;strong&gt;User-priority merging&lt;/strong&gt;. If you already have a &lt;code&gt;docker-compose.yml&lt;/code&gt;, Docker Wizard doesn't just overwrite it. It:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Preserves your existing values&lt;/li&gt;
&lt;li&gt;Adds new services you selected&lt;/li&gt;
&lt;li&gt;Backs up the original to &lt;code&gt;.bak&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Merges environment variables, ports, and volumes intelligently&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This took &lt;em&gt;way&lt;/em&gt; longer to get right than I'd like to admit. Turns out YAML merging is a deep rabbit hole involving map vs list syntax, port conflict resolution, and dependency ordering. I have a newfound respect for Kubernetes maintainers.&lt;/p&gt;

&lt;h2&gt;
  
  
  🚧 Still in Development (Help Wanted!)
&lt;/h2&gt;

&lt;p&gt;Here's the real talk: &lt;strong&gt;Docker Wizard is still cooking&lt;/strong&gt;. It works, it's usable, but it's not done. The "Planned / TBD" section in the knowledge base includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🧪 &lt;strong&gt;More comprehensive testing&lt;/strong&gt; (snapshot tests, fixture projects)&lt;/li&gt;
&lt;li&gt;🔌 &lt;strong&gt;Extensibility docs&lt;/strong&gt; (so you can add your own services/templates)&lt;/li&gt;
&lt;li&gt;📦 &lt;strong&gt;Better distribution&lt;/strong&gt; (Homebrew formula, anyone?)&lt;/li&gt;
&lt;li&gt;🐛 &lt;strong&gt;Edge cases&lt;/strong&gt; I haven't discovered yet (spoiler: you'll find them)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Current status:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;✅ Core wizard flow working&lt;/li&gt;
&lt;li&gt;✅ 7 languages supported&lt;/li&gt;
&lt;li&gt;✅ 15+ services in the catalog (MySQL, Postgres, Redis, Kafka, MongoDB, etc.)&lt;/li&gt;
&lt;li&gt;✅ Auto-tagging CI pipeline (every push to main = new release)&lt;/li&gt;
&lt;li&gt;⚠️ Environment map syntax merging is still WIP&lt;/li&gt;
&lt;li&gt;⚠️ Terminal compatibility testing needed&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🎮 Try It Out (I Need Your Feedback!)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Quick Start
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# One-liner install&lt;/span&gt;
curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://raw.githubusercontent.com/yosp313/docker-wizard/main/install.sh | sh

&lt;span class="c"&gt;# Or clone and run&lt;/span&gt;
git clone https://github.com/yosp313/docker-wizard
&lt;span class="nb"&gt;cd &lt;/span&gt;docker-wizard
go run &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  What I Need From You
&lt;/h3&gt;

&lt;p&gt;🐛 &lt;strong&gt;Found a bug?&lt;/strong&gt; &lt;a href="https://github.com/yosp313/docker-wizard/issues" rel="noopener noreferrer"&gt;Open an issue!&lt;/a&gt;&lt;br&gt;&lt;br&gt;
💡 &lt;strong&gt;Have ideas?&lt;/strong&gt; I'm all ears&lt;br&gt;&lt;br&gt;
🎨 &lt;strong&gt;Terminal looks weird?&lt;/strong&gt; Tell me your OS/terminal combo&lt;br&gt;&lt;br&gt;
📚 &lt;strong&gt;Want to add a service?&lt;/strong&gt; PRs welcome! (Edit &lt;code&gt;config/services.json&lt;/code&gt;)&lt;br&gt;&lt;br&gt;
⭐ &lt;strong&gt;Like the project?&lt;/strong&gt; Star it on GitHub (it makes my dopamine receptors happy)&lt;/p&gt;

&lt;h2&gt;
  
  
  🎯 What Works Right Now
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Run the wizard with different modes&lt;/span&gt;
docker-wizard                                      &lt;span class="c"&gt;# Styled TUI (default)&lt;/span&gt;
docker-wizard &lt;span class="nt"&gt;--mode&lt;/span&gt; plain                         &lt;span class="c"&gt;# Plain text TUI&lt;/span&gt;
docker-wizard &lt;span class="nt"&gt;--mode&lt;/span&gt; cli                           &lt;span class="c"&gt;# Prompt-based flow&lt;/span&gt;
docker-wizard &lt;span class="nt"&gt;--mode&lt;/span&gt; batch &lt;span class="nt"&gt;--services&lt;/span&gt; mysql,redis  &lt;span class="c"&gt;# Non-interactive&lt;/span&gt;

&lt;span class="c"&gt;# Subcommands&lt;/span&gt;
docker-wizard add kafka &lt;span class="nt"&gt;--write&lt;/span&gt;    &lt;span class="c"&gt;# Add services to existing compose&lt;/span&gt;
docker-wizard list                 &lt;span class="c"&gt;# Show available services&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  🤔 Philosophy: Sensible Defaults, Easy Overrides
&lt;/h2&gt;

&lt;p&gt;The generated files follow conventions that make sense:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Services use an &lt;code&gt;app-net&lt;/code&gt; network&lt;/li&gt;
&lt;li&gt;Only "public" services expose host ports (bye bye, port chaos)&lt;/li&gt;
&lt;li&gt;Multi-stage builds for compiled languages&lt;/li&gt;
&lt;li&gt;Templates support &lt;code&gt;APP_START_CMD&lt;/code&gt; environment variable for custom start commands&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But if you need to tweak something? Edit &lt;code&gt;config/services.json&lt;/code&gt; or &lt;code&gt;config/dockerfiles.json&lt;/code&gt;. No need to fork the entire project just to change a port number.&lt;/p&gt;

&lt;h2&gt;
  
  
  🎬 What's Next?
&lt;/h2&gt;

&lt;p&gt;I'm working on:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Better documentation&lt;/strong&gt; (tutorials, video walkthrough)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;More services&lt;/strong&gt; (Elasticsearch, Prometheus, Jaeger...)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Plugin system&lt;/strong&gt; (so you can distribute custom templates)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Smarter detection&lt;/strong&gt; (monorepos, multiple languages in one project)&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  🙏 Join the Quest
&lt;/h2&gt;

&lt;p&gt;This is a solo project (for now), and I'd love for it to become a community tool. Whether you're a Go wizard 🧙, a Docker devotee 🐋, or just someone who's tired of YAML yak-shaving—your input matters.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Repository:&lt;/strong&gt; &lt;a href="https://github.com/yosp313/docker-wizard" rel="noopener noreferrer"&gt;yosp313/docker-wizard&lt;/a&gt;&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Vibes:&lt;/strong&gt; Chaotic good&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Coffee consumption during development:&lt;/strong&gt; Yes  &lt;/p&gt;

&lt;p&gt;Drop a comment with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What services you'd want to see added&lt;/li&gt;
&lt;li&gt;Your most cursed docker-compose experience&lt;/li&gt;
&lt;li&gt;Whether the name "Docker Wizard" is too cheesy (it is, and I'm not changing it)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let's make Docker setup less painful, one wizard spell at a time. 🪄✨&lt;/p&gt;




&lt;p&gt;&lt;em&gt;P.S. - If you read this far, you're legally required to try the tool and report at least one bug. I don't make the rules.&lt;/em&gt; 😄&lt;/p&gt;

</description>
      <category>docker</category>
      <category>go</category>
      <category>opensource</category>
      <category>devtool</category>
    </item>
  </channel>
</rss>
