Skip to content

Commit 9440c92

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

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

superstack/bluegreen/index.html

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,15 @@
460460
</span>
461461
</a>
462462

463+
</li>
464+
465+
<li class="md-nav__item">
466+
<a href="#set-the-caddy-container-name-explicitly" class="md-nav__link">
467+
<span class="md-ellipsis">
468+
Set the Caddy container name explicitly
469+
</span>
470+
</a>
471+
463472
</li>
464473

465474
<li class="md-nav__item">
@@ -598,6 +607,15 @@
598607
</span>
599608
</a>
600609

610+
</li>
611+
612+
<li class="md-nav__item">
613+
<a href="#set-the-caddy-container-name-explicitly" class="md-nav__link">
614+
<span class="md-ellipsis">
615+
Set the Caddy container name explicitly
616+
</span>
617+
</a>
618+
601619
</li>
602620

603621
<li class="md-nav__item">
@@ -695,6 +713,11 @@ <h3 id="remove-exposed-ports">Remove exposed ports</h3>
695713
<p>We'll no longer expose ports in the stacks, instead a simple "front proxy" will
696714
sit in front of the two stacks, exposing ports and proxying to the active
697715
stack. So remove the Caddy service's <code>ports:</code> section in <code>compose.yaml</code>.</p>
716+
<h3 id="set-the-caddy-container-name-explicitly">Set the Caddy container name explicitly</h3>
717+
<p>This allows us to switch between the two stacks:</p>
718+
<div class="highlight"><span class="filename">compose.yaml</span><pre><span></span><code><span class="nt">caddy</span><span class="p">:</span>
719+
<span class="w"> </span><span class="nt">container_name</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">${STACK_NAME}_caddy</span>
720+
</code></pre></div>
698721
<h3 id="serve-http-only-in-the-stacks">Serve http-only in the stacks</h3>
699722
<p>Set <code>CADDY_SITE_ADDRESS</code> to only <code>:80</code> (leaving TLS termination to the front
700723
proxy):</p>
@@ -822,7 +845,7 @@ <h2 id="github-actions">Github Actions</h2>
822845
<span class="w"> </span><span class="no">echo $GHCR_PAT | docker login ghcr.io -u ${{ github.actor }} --password-stdin</span>
823846
<span class="w"> </span><span class="no">cd ${{ steps.idle.outputs.IDLE }}</span>
824847
<span class="w"> </span><span class="no">docker compose pull -q</span>
825-
<span class="w"> </span><span class="no">docker compose up -d</span>
848+
<span class="w"> </span><span class="no">STACK_NAME=${{ steps.idle.outputs.IDLE }} docker compose up -d</span>
826849
<span class="w"> </span><span class="no">echo &quot;${{ steps.idle.outputs.ACTIVE }}&quot; &gt; active_stack</span>
827850
<span class="w"> </span><span class="nt">env</span><span class="p">:</span>
828851
<span class="w"> </span><span class="nt">GHCR_PAT</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">${{ secrets.GHCR_PAT }}</span>

0 commit comments

Comments
 (0)