Skip to content

Commit 2f42bd9

Browse files
author
Exploding Labs Bot
committed
Update site from docs source repo
1 parent 73ce4e8 commit 2f42bd9

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

superstack/deploy/index.html

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -530,18 +530,20 @@ <h1 id="deploying-to-remote-environments">☁️ Deploying to Remote Environment
530530
<p>The goal is that only <code>compose.yaml</code> and secrets need to exist on the remote
531531
server.</p>
532532
<h2 id="1-build-your-images">🧱 1. Build Your Images</h2>
533-
<p>If a service has a <code>build:</code> section, add your own image name and version tag:</p>
534-
<div class="highlight"><span class="filename">app/compose.yaml</span><pre><span></span><code><span class="nt">services</span><span class="p">:</span>
535-
<span class="w"> </span><span class="nt">caddy</span><span class="p">:</span>
536-
<span class="w"> </span><span class="nt">build</span><span class="p">:</span>
537-
<span class="w"> </span><span class="nt">context</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">./caddy</span>
538-
<span class="w"> </span><span class="nt">image</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">ghcr.io/youruser/yourapp-caddy:0.1.0</span>
539-
</code></pre></div>
540-
<p>Build and push your images:</p>
541-
<div class="highlight"><pre><span></span><code><span class="nb">cd</span><span class="w"> </span>app
542-
docker<span class="w"> </span>compose<span class="w"> </span>build
543-
docker<span class="w"> </span>compose<span class="w"> </span>push
544-
</code></pre></div>
533+
<p>If a service has a <code>build:</code> section, add your own <code>image:</code> name and version tag:</p>
534+
<p>```yaml title="app/compose.yaml" hl_lines=3
535+
services:
536+
caddy:
537+
image: ghcr.io/youruser/yourapp-caddy:0.1.0
538+
build:
539+
context: ./caddy
540+
<div class="highlight"><pre><span></span><code>Build and push your images:
541+
542+
```sh
543+
cd app
544+
docker compose build
545+
docker compose push
546+
</code></pre></div></p>
545547
<h2 id="2-copy-to-server">📦 2. Copy to Server</h2>
546548
<p>Copy your <code>compose.yaml</code> to the remote host:</p>
547549
<div class="highlight"><pre><span></span><code>scp<span class="w"> </span>compose.yaml<span class="w"> </span>youruser@yourserver:

0 commit comments

Comments
 (0)