Skip to content

Commit 3799899

Browse files
author
Exploding Labs Bot
committed
Update site from docs source repo
1 parent affc31a commit 3799899

File tree

2 files changed

+3
-37
lines changed

2 files changed

+3
-37
lines changed

superstack/bluegreen/index.html

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -478,15 +478,6 @@
478478
</span>
479479
</a>
480480

481-
</li>
482-
483-
<li class="md-nav__item">
484-
<a href="#make-the-networks-external" class="md-nav__link">
485-
<span class="md-ellipsis">
486-
Make the networks external
487-
</span>
488-
</a>
489-
490481
</li>
491482

492483
</ul>
@@ -625,15 +616,6 @@
625616
</span>
626617
</a>
627618

628-
</li>
629-
630-
<li class="md-nav__item">
631-
<a href="#make-the-networks-external" class="md-nav__link">
632-
<span class="md-ellipsis">
633-
Make the networks external
634-
</span>
635-
</a>
636-
637619
</li>
638620

639621
</ul>
@@ -729,23 +711,6 @@ <h3 id="share-volumes-between-the-stacks">Share volumes between the stacks</h3>
729711
<span class="w"> </span><span class="nt">user_data</span><span class="p">:</span>
730712
<span class="w"> </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">user-data</span>
731713
</code></pre></div>
732-
<h3 id="make-the-networks-external">Make the networks external</h3>
733-
<p>The front proxy needs to connect to both <code>blue_default</code> and <code>green_default</code>
734-
networks. This makes it easier to start the front proxy regardless of whether
735-
the stacks are up:</p>
736-
<div class="highlight"><span class="filename">compose.yaml</span><pre><span></span><code><span class="nt">networks</span><span class="p">:</span>
737-
<span class="w"> </span><span class="nt">default</span><span class="p">:</span>
738-
<span class="w"> </span><span class="nt">external</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">true</span>
739-
</code></pre></div>
740-
<p>In the override file, don't use external networks:</p>
741-
<div class="highlight"><span class="filename">compose.override.yaml</span><pre><span></span><code><span class="nt">networks</span><span class="p">:</span>
742-
<span class="w"> </span><span class="nt">default</span><span class="p">:</span>
743-
<span class="w"> </span><span class="nt">external</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">false</span>
744-
</code></pre></div>
745-
<p>Shell into the server and manually create the two networks:</p>
746-
<div class="highlight"><pre><span></span><code>docker<span class="w"> </span>network<span class="w"> </span>create<span class="w"> </span>blue_default
747-
docker<span class="w"> </span>network<span class="w"> </span>create<span class="w"> </span>green_default
748-
</code></pre></div>
749714
<h2 id="3-add-a-front-proxy">3. Add a Front Proxy</h2>
750715
<p>The <em>front proxy</em> is a single container that binds ports <code>80</code> and <code>443</code> on the
751716
server and routes requests into either the Blue or Green stack.</p>
@@ -758,7 +723,8 @@ <h2 id="3-add-a-front-proxy">3. Add a Front Proxy</h2>
758723
<p>The front proxy manages TLS, so give it a persistent volume for certificates:</p>
759724
<div class="highlight"><pre><span></span><code>docker<span class="w"> </span>volume<span class="w"> </span>create<span class="w"> </span>caddy_data
760725
</code></pre></div>
761-
<p>Start the proxy, attaching it to both networks:</p>
726+
<p>Start the proxy, attaching it to both networks – this requires both stacks to
727+
be up first, so the networks exist:</p>
762728
<div class="highlight"><pre><span></span><code>docker<span class="w"> </span>run<span class="w"> </span>-d<span class="w"> </span><span class="se">\</span>
763729
<span class="w"> </span>--name<span class="w"> </span>front-proxy<span class="w"> </span><span class="se">\</span>
764730
<span class="w"> </span>-p<span class="w"> </span><span class="m">80</span>:80<span class="w"> </span>-p<span class="w"> </span><span class="m">443</span>:443<span class="w"> </span><span class="se">\</span>

0 commit comments

Comments
 (0)