<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Stratos Engineering]]></title><description><![CDATA[Stratos Engineering]]></description><link>https://stratosapp.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 11:28:45 GMT</lastBuildDate><atom:link href="https://stratosapp.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[How I Replaced 6 GB Docker Desktop with a 65 MB Native Swift PHP 8.5 Stack on Apple Silicon]]></title><description><![CDATA[If you build Laravel, WordPress, or PHP apps on an Apple Silicon MacBook, you've probably felt the exact same frustration: you only have two local projects…]]></description><link>https://stratosapp.hashnode.dev/how-i-replaced-6-gb-docker-desktop-with-a-65-mb-native-swift-php-8-5-stack-on-apple-silicon</link><guid isPermaLink="true">https://stratosapp.hashnode.dev/how-i-replaced-6-gb-docker-desktop-with-a-65-mb-native-swift-php-8-5-stack-on-apple-silicon</guid><category><![CDATA[Laravel]]></category><category><![CDATA[PHP]]></category><category><![CDATA[macOS]]></category><category><![CDATA[Web Development]]></category><dc:creator><![CDATA[Md. Khorshed Alam]]></dc:creator><pubDate>Sat, 21 Nov 2026 14:04:21 GMT</pubDate><content:encoded><![CDATA[<p>If you build Laravel, WordPress, or PHP apps on an Apple Silicon MacBook, you've probably felt the exact same frustration: you only have two local projects open, yet Activity Monitor shows <strong>Docker Desktop eating 4–8 GB of RAM</strong>, <code>Virtualization</code> hammering your CPU, and your MacBook battery dropping 30% in an hour.</p>
<p>For a long time, the tradeoff seemed unavoidable:</p>
<ul>
<li><strong>Docker Desktop / Sail:</strong> Great isolation, terrible battery life and slow bind-mount file I/O on large <code>vendor/</code> directories.</li>
<li><strong>Homebrew + Valet:</strong> Fast and native, until <code>brew upgrade</code> bumps <code>openssl@4</code> or <code>icu4c</code> and breaks your PHP extensions or causes <code>dyld: Library not loaded</code> errors across every project.</li>
</ul>
<p>That frustration is why I built <strong><a href="https://stratosapp.dev">Stratos</a></strong> — a 100% native Swift macOS local development stack that runs coexisting PHP 8.1–8.5 pools, Nginx, MySQL/PostgreSQL/Redis, automatic wildcard <code>.test</code> HTTPS, and developer debugging tools in <strong>~65 MB of idle RAM</strong>.</p>
<hr />
<h2>Why Native Swift + Isolated Unix Sockets Beats a Linux VM on macOS</h2>
<p>When Docker Desktop serves a local Laravel request on macOS, every file read in <code>vendor/</code> and <code>storage/</code> crosses the macOS ↔ Linux VM filesystem bridge (VirtioFS). On a real Laravel app with 400+ autoloaded files per request, that virtualization overhead adds up fast.</p>
<p>On a native stack:</p>
<ol>
<li><strong>Direct APFS I/O:</strong> PHP-FPM reads directly from macOS APFS with zero VM translation layer — sub-20ms TTFB on local Laravel routes.</li>
<li><strong>Coexisting PHP 8.1, 8.2, 8.3, 8.4, and 8.5 FPM Pools:</strong> Instead of globally switching <code>php</code> every time you jump between a legacy client project (PHP 8.1) and a new Laravel 12 app (PHP 8.5), each PHP version runs its own isolated Unix socket (<code>~/Library/Application Support/Stratos/fpm/php8.X-fpm.sock</code>) and Nginx routes each <code>.test</code> site to its pinned version simultaneously.</li>
<li><strong>Zero Port-53 Hijacking:</strong> Local <code>.test</code> DNS runs on an isolated <code>dnsmasq</code> port (<code>53535</code>) wired via <code>/etc/resolver/test</code> — so it never conflicts with Pi-hole, NextDNS, corporate VPNs, or Docker's own DNS.</li>
<li><strong>Automatic Wildcard <code>.test</code> HTTPS:</strong> A local Root CA is generated and trusted in your macOS Keychain once, issuing SAN certificates automatically (including for <strong>Git worktree branch subdomains</strong> like <code>feature-auth.myapp.test</code>).</li>
</ol>
<hr />
<h2>Measured Idle Footprint (Apple Silicon M-Series)</h2>
<table>
<thead>
<tr>
<th align="left">Metric</th>
<th align="left">Docker Desktop + Sail (2 Laravel Sites)</th>
<th align="left">Native Swift Stack (Stratos)</th>
</tr>
</thead>
<tbody><tr>
<td align="left"><strong>Idle RAM</strong></td>
<td align="left">4.2 – 6.8 GB</td>
<td align="left"><strong>~65 MB</strong></td>
</tr>
<tr>
<td align="left"><strong>Cold Boot Time</strong></td>
<td align="left">18 – 35 seconds</td>
<td align="left"><strong>&lt; 1 second</strong></td>
</tr>
<tr>
<td align="left"><strong>Multi-PHP Side-by-Side</strong></td>
<td align="left">Separate container per version</td>
<td align="left"><strong>Isolated Unix sockets (8.1–8.5)</strong></td>
</tr>
<tr>
<td align="left"><strong>File Sync Overhead</strong></td>
<td align="left">VirtioFS bridge</td>
<td align="left"><strong>0% (Native APFS)</strong></td>
</tr>
<tr>
<td align="left"><strong>Battery Drain</strong></td>
<td align="left">High (VM polling)</td>
<td align="left"><strong>~0.1% idle CPU</strong></td>
</tr>
</tbody></table>
<hr />
<h2>Solving the Real Day-to-Day Local Dev Friction</h2>
<p>Beyond raw speed, native local development only sticks if you don't need 4 other apps open alongside it:</p>
<ul>
<li><strong>Git Worktree Branch Subdomains:</strong> Create or link a Git worktree and immediately access it at <code>feature-branch.myapp.test</code> with isolated SQLite and queues — test two branches side-by-side without stashing.</li>
<li><strong>Built-in Universal Database Hub:</strong> Browse SQLite, MySQL, and PostgreSQL tables natively + generate interactive <strong>ER Schema Diagrams</strong> without switching to a separate <code>$89</code> GUI.</li>
<li><strong>Visual PHP &amp; Laravel Tinker REPL + 1-Click Xdebug 3:</strong> Run Eloquent queries in a visual sandbox and toggle Xdebug on port <code>9003</code> for PhpStorm/Cursor/VS Code with zero <code>php.ini</code> editing.</li>
<li><strong>Built-in Local AI MCP Bridge (v1.7.2):</strong> Connect Cursor, Claude Code, Claude Desktop, or Windsurf directly to your local site metadata, live DB schemas, and Laravel exception logs over localhost loopback — no more copy-pasting stack traces.</li>
</ul>
<hr />
<h2>Try It Free (Zero Docker, Zero Subscription Lock-In)</h2>
<p>Stratos Core is <strong>free forever</strong> (Nginx, multi-PHP 8.1–8.5, automatic <code>.test</code> HTTPS, CLI companion, MailCatcher, SQLite/MySQL browsing, and Free read-only MCP schema context).</p>
<p>If you want the full Pro suite (Visual Tinker, ER Diagrams, unlimited Cloudflare Tunnels, Request Inspector &amp; cURL replay, Site Snapshots, and full MCP execution), it's <code>$39/year</code> or a <strong><code>$89</code> one-time Founder Lifetime license</strong> (currently <strong>20% off with code <code>BFCM20</code></strong> through Nov 30, 2026 — <code>$71.20</code> once for 3 Macs).</p>
<ul>
<li><strong>Download Stratos v1.7.2 (Apple Silicon &amp; Intel, Notarized):</strong> <a href="https://stratosapp.dev/download/">https://stratosapp.dev/download/</a></li>
<li><strong>Full Docker vs. Native Benchmark &amp; Sail Migrator:</strong> <a href="https://stratosapp.dev/docs/apple-silicon-docker-desktop-vs-native-swift-php-laravel/">https://stratosapp.dev/docs/apple-silicon-docker-desktop-vs-native-swift-php-laravel/</a></li>
</ul>
<p>Happy to answer any questions about Swift process orchestration, Homebrew bottle dependency resolution (<code>openssl@4</code>), or Unix socket FPM pooling in the comments!</p>
]]></content:encoded></item></channel></rss>