Skip to content

Commit 580d3f7

Browse files
author
Exploding Labs Bot
committed
Update site from docs source repo
1 parent aef9dd0 commit 580d3f7

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

superstack/bluegreen/index.html

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

481+
</li>
482+
483+
<li class="md-nav__item">
484+
<a href="#move-postgres-to-its-own-unique-container" class="md-nav__link">
485+
<span class="md-ellipsis">
486+
Move Postgres to its own unique container
487+
</span>
488+
</a>
489+
481490
</li>
482491

483492
<li class="md-nav__item">
@@ -628,6 +637,15 @@
628637
</span>
629638
</a>
630639

640+
</li>
641+
642+
<li class="md-nav__item">
643+
<a href="#move-postgres-to-its-own-unique-container" class="md-nav__link">
644+
<span class="md-ellipsis">
645+
Move Postgres to its own unique container
646+
</span>
647+
</a>
648+
631649
</li>
632650

633651
<li class="md-nav__item">
@@ -731,12 +749,15 @@ <h3 id="serve-http-only-in-the-stacks">Serve http-only in the stacks</h3>
731749
<span class="w"> </span><span class="nt">environment</span><span class="p">:</span>
732750
<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>
733751
</code></pre></div>
752+
<h3 id="move-postgres-to-its-own-unique-container">Move Postgres to its own unique container</h3>
753+
<p>Running two separate PostgreSQL instances and having them both simultaneously
754+
access the same data directory within that shared volume is not recommended and
755+
can lead to data corruption.</p>
756+
<p>So we need to move Postgres out of the compose file and start it separately.</p>
734757
<h3 id="share-volumes-between-the-stacks">Share volumes between the stacks</h3>
735-
<p>To share data between the two stacks (database, uploads, etc.), give volumes
736-
explicit names:</p>
758+
<p>To share data between the two stacks (uploads, etc.), give volumes explicit
759+
names:</p>
737760
<div class="highlight"><span class="filename">compose.yaml</span><pre><span></span><code><span class="nt">volumes</span><span class="p">:</span>
738-
<span class="w"> </span><span class="nt">postgres_data</span><span class="p">:</span>
739-
<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">postgres-data</span>
740761
<span class="w"> </span><span class="nt">user_data</span><span class="p">:</span>
741762
<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>
742763
</code></pre></div>

0 commit comments

Comments
 (0)