7676 < div data-md-component ="skip ">
7777
7878
79- < a href ="#1-adjust-the-compose-file " class ="md-skip ">
79+ < a href ="#1-caddy " class ="md-skip ">
8080 Skip to content
8181 </ a >
8282
444444 < ul class ="md-nav__list " data-md-component ="toc " data-md-scrollfix >
445445
446446 < li class ="md-nav__item ">
447- < a href ="#1-adjust-the-compose-file " class ="md-nav__link ">
447+ < a href ="#1-caddy " class ="md-nav__link ">
448448 < span class ="md-ellipsis ">
449- 1. Adjust the Compose file
449+ 1. Caddy
450450 </ span >
451451 </ a >
452452
453- < nav class ="md-nav " aria-label ="1. Adjust the Compose file ">
453+ < nav class ="md-nav " aria-label ="1. Caddy ">
454454 < ul class ="md-nav__list ">
455455
456456 < li class ="md-nav__item ">
480480
481481</ li >
482482
483- < li class ="md-nav__item ">
484- < a href ="#move-postgres-to-its-own-unique-container " class ="md-nav__link ">
483+ </ ul >
484+ </ nav >
485+
486+ </ li >
487+
488+ < li class ="md-nav__item ">
489+ < a href ="#postgres " class ="md-nav__link ">
485490 < span class ="md-ellipsis ">
486- Move Postgres to its own unique container
491+ Postgres
487492 </ span >
488493 </ a >
489494
490- </ li >
495+ < nav class ="md-nav " aria-label ="Postgres ">
496+ < ul class ="md-nav__list ">
491497
492498 < li class ="md-nav__item ">
493499 < a href ="#share-volumes-between-the-stacks " class ="md-nav__link ">
603609 < ul class ="md-nav__list " data-md-component ="toc " data-md-scrollfix >
604610
605611 < li class ="md-nav__item ">
606- < a href ="#1-adjust-the-compose-file " class ="md-nav__link ">
612+ < a href ="#1-caddy " class ="md-nav__link ">
607613 < span class ="md-ellipsis ">
608- 1. Adjust the Compose file
614+ 1. Caddy
609615 </ span >
610616 </ a >
611617
612- < nav class ="md-nav " aria-label ="1. Adjust the Compose file ">
618+ < nav class ="md-nav " aria-label ="1. Caddy ">
613619 < ul class ="md-nav__list ">
614620
615621 < li class ="md-nav__item ">
639645
640646</ li >
641647
642- < li class ="md-nav__item ">
643- < a href ="#move-postgres-to-its-own-unique-container " class ="md-nav__link ">
648+ </ ul >
649+ </ nav >
650+
651+ </ li >
652+
653+ < li class ="md-nav__item ">
654+ < a href ="#postgres " class ="md-nav__link ">
644655 < span class ="md-ellipsis ">
645- Move Postgres to its own unique container
656+ Postgres
646657 </ span >
647658 </ a >
648659
649- </ li >
660+ < nav class ="md-nav " aria-label ="Postgres ">
661+ < ul class ="md-nav__list ">
650662
651663 < li class ="md-nav__item ">
652664 < a href ="#share-volumes-between-the-stacks " class ="md-nav__link ">
@@ -732,7 +744,7 @@ <h1>Blue/Green Deployments</h1>
732744deploy to the idle stack, test it, and when ready, swap roles — giving
733745near-zero downtime and easy rollback.</ p >
734746< p > < img alt ="Blue/Green " src ="../assets/bluegreen.png " /> </ p >
735- < h2 id ="1-adjust-the-compose-file "> 1. Adjust the Compose file </ h2 >
747+ < h2 id ="1-caddy "> 1. Caddy </ h2 >
736748< h3 id ="remove-exposed-ports "> Remove exposed ports</ h3 >
737749< p > Remove the < code > caddy</ code > service's < code > ports:</ code > section in < code > compose.yaml</ code > .</ p >
738750< p > We'll no longer expose ports in the stacks, instead a simple "front proxy" will
@@ -749,7 +761,7 @@ <h3 id="set-the-caddy-container-name-explicitly">Set the Caddy container name ex
749761< div class ="highlight "> < span class ="filename "> compose.yaml</ span > < pre > < span > </ span > < code > < span class ="nt "> caddy</ span > < span class ="p "> :</ span >
750762< 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 >
751763</ code > </ pre > </ div >
752- < h3 id ="move- postgres-to-its-own-unique-container " > Move Postgres to its own unique container </ h3 >
764+ < h2 id ="postgres " > Postgres</ h2 >
753765< p > Running two separate PostgreSQL instances and having them both simultaneously
754766access the same data directory within that shared volume is not recommended and
755767can lead to data corruption.</ p >
0 commit comments