<?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>Forem: Aref</title>
    <description>The latest articles on Forem by Aref (@aref).</description>
    <link>https://forem.com/aref</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%2F71498%2Fa1f68351-9821-4258-9e84-9027daa20171.png</url>
      <title>Forem: Aref</title>
      <link>https://forem.com/aref</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/aref"/>
    <language>en</language>
    <item>
      <title>Stop Wrestling with Docker Compose - This CLI Spins Up Your Entire Dev Stack in Seconds</title>
      <dc:creator>Aref</dc:creator>
      <pubDate>Tue, 02 Sep 2025 16:35:02 +0000</pubDate>
      <link>https://forem.com/aref/stop-wrestling-with-docker-compose-this-cli-spins-up-your-entire-dev-stack-in-seconds-3pjm</link>
      <guid>https://forem.com/aref/stop-wrestling-with-docker-compose-this-cli-spins-up-your-entire-dev-stack-in-seconds-3pjm</guid>
      <description>&lt;p&gt;We've all been there. You start a new project, need a database, maybe some Redis, perhaps Kafka for that microservices architecture you're building. What follows is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;🔍 Google "docker compose postgresql"&lt;/li&gt;
&lt;li&gt;📋 Copy some random compose file&lt;/li&gt;
&lt;li&gt;🔧 Modify it for your needs&lt;/li&gt;
&lt;li&gt;❌ Port 5432 is already in use&lt;/li&gt;
&lt;li&gt;😤 Repeat for every service you need&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What if there was a better way?
&lt;/h2&gt;

&lt;p&gt;I built &lt;strong&gt;infra-tools&lt;/strong&gt; - a CLI that gives you enterprise-grade services with zero configuration.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; infra-tools
infra-tools databases     &lt;span class="c"&gt;# PostgreSQL, MySQL, MongoDB, Redis running&lt;/span&gt;
infra-tools status        &lt;span class="c"&gt;# Beautiful status dashboard&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  🚀 Quick Start
&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;# Start all databases&lt;/span&gt;
infra-tools databases

&lt;span class="c"&gt;# Start messaging services  &lt;/span&gt;
infra-tools messaging

&lt;span class="c"&gt;# Check what's running&lt;/span&gt;
infra-tools status

&lt;span class="c"&gt;# Follow service logs&lt;/span&gt;
infra-tools logs postgres &lt;span class="nt"&gt;-f&lt;/span&gt;

&lt;span class="c"&gt;# Interactive configuration&lt;/span&gt;
infra-tools config redis
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  🎯 What's Included?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;15+ Production-Ready Services:&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;th&gt;Services&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Databases&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;PostgreSQL, MySQL, MongoDB, Redis, SQL Server, Neo4j, CouchDB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Messaging&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Kafka, Zookeeper, RabbitMQ&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Observability&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Elasticsearch, Logstash, Kibana, Prometheus, Grafana&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Gateway&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Kong API Gateway + Admin UI&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;All services use &lt;strong&gt;latest stable versions&lt;/strong&gt; with security updates and performance improvements.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔧 Smart Configuration
&lt;/h2&gt;

&lt;p&gt;The interactive config system lets you customize anything:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;infra-tools config postgres
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;? PostgreSQL Image: postgres:17-alpine
? Port: 5432  
? Password: ********
? Database Name: myapp
? Custom Environment Variables? (Y/n)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Changes are saved and reused across restarts.&lt;/p&gt;

&lt;h2&gt;
  
  
  🎨 Beautiful Status Dashboard
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;infra-tools status
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;┌─────────────┬──────────┬─────────────┬─────────────────┐
│ SERVICE     │ STATUS   │ PORTS       │ HEALTH          │
├─────────────┼──────────┼─────────────┼─────────────────┤
│ postgres    │ ✅ Running │ 5432        │ 🟢 Healthy      │
│ redis       │ ✅ Running │ 6379        │ 🟢 Healthy      │
│ kafka       │ ✅ Running │ 9092        │ 🟢 Healthy      │
│ grafana     │ ✅ Running │ 3000        │ 🟢 Healthy      │
└─────────────┴──────────┴─────────────┴─────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  🛡️ Production-Ready Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Health Checks:&lt;/strong&gt; Every service has proper health monitoring&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Port Conflict Detection:&lt;/strong&gt; Smart port assignment&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Volume Management:&lt;/strong&gt; Persistent data with easy backup&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cross-Platform:&lt;/strong&gt; Windows, macOS, Linux support&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Resource Limits:&lt;/strong&gt; Proper CPU/memory constraints&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🔍 Debugging Made Easy
&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;# Check environment variables&lt;/span&gt;
infra-tools vars postgres

&lt;span class="c"&gt;# Interactive shell access&lt;/span&gt;
infra-tools shell redis

&lt;span class="c"&gt;# View port mappings&lt;/span&gt;
infra-tools ports

&lt;span class="c"&gt;# Execute commands&lt;/span&gt;
infra-tools &lt;span class="nb"&gt;exec &lt;/span&gt;postgres psql &lt;span class="nt"&gt;-U&lt;/span&gt; postgres
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  💡 Real-World Use Cases
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Microservices Development:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;infra-tools databases messaging monitoring
&lt;span class="c"&gt;# Full stack running in ~30 seconds&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Data Engineering:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;infra-tools kafka elasticsearch
&lt;span class="c"&gt;# Perfect for streaming pipelines&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Full-Stack Applications:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;infra-tools            &lt;span class="c"&gt;# Everything you need&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  🚀 Why I Built This
&lt;/h2&gt;

&lt;p&gt;After years of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;❌ Copying docker-compose files between projects&lt;/li&gt;
&lt;li&gt;❌ Fighting port conflicts&lt;/li&gt;
&lt;li&gt;❌ Inconsistent team environments
&lt;/li&gt;
&lt;li&gt;❌ "Works on my machine" syndrome&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I wanted &lt;strong&gt;one command&lt;/strong&gt; that gives you &lt;strong&gt;everything&lt;/strong&gt; you need for modern development.&lt;/p&gt;

&lt;h2&gt;
  
  
  🎯 Get Started
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; infra-tools
infra-tools &lt;span class="nt"&gt;--help&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Links:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🐙 &lt;a href="https://github.com/arefm/infra-tools" rel="noopener noreferrer"&gt;GitHub Repository&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;📦 &lt;a href="https://www.npmjs.com/package/infra-tools" rel="noopener noreferrer"&gt;NPM Package&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;📚 &lt;a href="https://github.com/arefm/infra-tools#readme" rel="noopener noreferrer"&gt;Full Documentation&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;What services would you want to see added next? Let me know in the comments! 🚀&lt;/p&gt;

&lt;p&gt;&lt;em&gt;P.S. If this saves you time, a ⭐ on GitHub would mean the world to me!&lt;/em&gt;&lt;/p&gt;

</description>
      <category>docker</category>
      <category>cli</category>
      <category>devtools</category>
      <category>node</category>
    </item>
  </channel>
</rss>
