File tree Expand file tree Collapse file tree 3 files changed +21
-14
lines changed
Expand file tree Collapse file tree 3 files changed +21
-14
lines changed Original file line number Diff line number Diff line change 1414 --md-default-fg-color : # e9e9e9 ;
1515}
1616
17+ /* Fix indentation shift on highlighted lines */
18+ .md-typeset pre > code > span .hll {
19+ margin-left : 0 !important ;
20+ padding-left : 0 !important ;
21+ display : inline-block;
22+ width : 100% ;
23+ box-sizing : border-box;
24+ }
25+
1726/* Fix a horizontal scroll isue */
1827.md-typeset * {
1928 margin-left : 0 !important ;
Original file line number Diff line number Diff line change @@ -531,19 +531,17 @@ <h1 id="deploying-to-remote-environments">☁️ Deploying to Remote Environment
531531server.</ p >
532532< h2 id ="1-build-your-images "> 🧱 1. Build Your Images</ h2 >
533533< 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 >
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 ="hll "> < 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+ </ span > </ 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 >
547545< h2 id ="2-copy-to-server "> 📦 2. Copy to Server</ h2 >
548546< p > Copy your < code > compose.yaml</ code > to the remote host:</ p >
549547< div class ="highlight "> < pre > < span > </ span > < code > scp< span class ="w "> </ span > compose.yaml< span class ="w "> </ span > youruser@yourserver:
You can’t perform that action at this time.
0 commit comments