|
463 | 463 | </li> |
464 | 464 |
|
465 | 465 | <li class="md-nav__item"> |
466 | | - <a href="#set-the-caddy-container-name-explicitly" class="md-nav__link"> |
| 466 | + <a href="#serve-http-only-in-the-stacks" class="md-nav__link"> |
467 | 467 | <span class="md-ellipsis"> |
468 | | - Set the Caddy container name explicitly |
| 468 | + Serve HTTP-only in the stacks |
469 | 469 | </span> |
470 | 470 | </a> |
471 | 471 |
|
472 | 472 | </li> |
473 | 473 |
|
474 | 474 | <li class="md-nav__item"> |
475 | | - <a href="#serve-http-only-in-the-stacks" class="md-nav__link"> |
| 475 | + <a href="#set-the-caddy-container-name-explicitly" class="md-nav__link"> |
476 | 476 | <span class="md-ellipsis"> |
477 | | - Serve http-only in the stacks |
| 477 | + Set the Caddy container name explicitly |
478 | 478 | </span> |
479 | 479 | </a> |
480 | 480 |
|
|
622 | 622 | </li> |
623 | 623 |
|
624 | 624 | <li class="md-nav__item"> |
625 | | - <a href="#set-the-caddy-container-name-explicitly" class="md-nav__link"> |
| 625 | + <a href="#serve-http-only-in-the-stacks" class="md-nav__link"> |
626 | 626 | <span class="md-ellipsis"> |
627 | | - Set the Caddy container name explicitly |
| 627 | + Serve HTTP-only in the stacks |
628 | 628 | </span> |
629 | 629 | </a> |
630 | 630 |
|
631 | 631 | </li> |
632 | 632 |
|
633 | 633 | <li class="md-nav__item"> |
634 | | - <a href="#serve-http-only-in-the-stacks" class="md-nav__link"> |
| 634 | + <a href="#set-the-caddy-container-name-explicitly" class="md-nav__link"> |
635 | 635 | <span class="md-ellipsis"> |
636 | | - Serve http-only in the stacks |
| 636 | + Set the Caddy container name explicitly |
637 | 637 | </span> |
638 | 638 | </a> |
639 | 639 |
|
@@ -737,18 +737,18 @@ <h3 id="remove-exposed-ports">Remove exposed ports</h3> |
737 | 737 | <p>Remove the <code>caddy</code> service's <code>ports:</code> section in <code>compose.yaml</code>.</p> |
738 | 738 | <p>We'll no longer expose ports in the stacks, instead a simple "front proxy" will |
739 | 739 | sit in front of the two stacks, proxying to the active stack.</p> |
| 740 | +<h3 id="serve-http-only-in-the-stacks">Serve HTTP-only in the stacks</h3> |
| 741 | +<p>Set <code>CADDY_SITE_ADDRESS</code> to only <code>:80</code>, removing <code>:443</code> (leaving TLS |
| 742 | +termination to the front proxy):</p> |
| 743 | +<div class="highlight"><span class="filename">compose.yaml</span><pre><span></span><code><span class="nt">caddy</span><span class="p">:</span> |
| 744 | +<span class="w"> </span><span class="nt">environment</span><span class="p">:</span> |
| 745 | +<span class="w"> </span><span class="nt">CADDY_SITE_ADDRESS</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">:80</span> |
| 746 | +</code></pre></div> |
740 | 747 | <h3 id="set-the-caddy-container-name-explicitly">Set the Caddy container name explicitly</h3> |
741 | 748 | <p>This allows us to switch between the two stacks:</p> |
742 | 749 | <div class="highlight"><span class="filename">compose.yaml</span><pre><span></span><code><span class="nt">caddy</span><span class="p">:</span> |
743 | 750 | <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> |
744 | 751 | </code></pre></div> |
745 | | -<h3 id="serve-http-only-in-the-stacks">Serve http-only in the stacks</h3> |
746 | | -<p>Set <code>CADDY_SITE_ADDRESS</code> to only <code>:80</code> (leaving TLS termination to the front |
747 | | -proxy):</p> |
748 | | -<div class="highlight"><span class="filename">compose.yaml</span><pre><span></span><code><span class="nt">caddy</span><span class="p">:</span> |
749 | | -<span class="w"> </span><span class="nt">environment</span><span class="p">:</span> |
750 | | -<span class="w"> </span><span class="nt">CADDY_SITE_ADDRESS</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">:80</span> |
751 | | -</code></pre></div> |
752 | 752 | <h3 id="move-postgres-to-its-own-unique-container">Move Postgres to its own unique container</h3> |
753 | 753 | <p>Running two separate PostgreSQL instances and having them both simultaneously |
754 | 754 | access the same data directory within that shared volume is not recommended and |
|
0 commit comments