454454 < ul class ="md-nav__list ">
455455
456456 < li class ="md-nav__item ">
457- < a href ="#remove-exposed-ports " class ="md-nav__link ">
457+ < a href ="#set-the-caddy-container-name-explicitly " class ="md-nav__link ">
458458 < span class ="md-ellipsis ">
459- Remove exposed ports
459+ Set the Caddy container name explicitly
460460 </ span >
461461 </ a >
462462
463463</ li >
464464
465465 < li class ="md-nav__item ">
466- < a href ="#serve-http-only-in-the-stacks " class ="md-nav__link ">
466+ < a href ="#remove-exposed-ports " class ="md-nav__link ">
467467 < span class ="md-ellipsis ">
468- Serve HTTP-only in the stacks
468+ Remove exposed ports
469469 </ span >
470470 </ a >
471471
472472</ li >
473473
474474 < li class ="md-nav__item ">
475- < a href ="#set-the-caddy-container-name-explicitly " class ="md-nav__link ">
475+ < a href ="#serve-http-only-in-the-stacks " class ="md-nav__link ">
476476 < span class ="md-ellipsis ">
477- Set the Caddy container name explicitly
477+ Serve HTTP-only in the stacks
478478 </ span >
479479 </ a >
480480
613613 < ul class ="md-nav__list ">
614614
615615 < li class ="md-nav__item ">
616- < a href ="#remove-exposed-ports " class ="md-nav__link ">
616+ < a href ="#set-the-caddy-container-name-explicitly " class ="md-nav__link ">
617617 < span class ="md-ellipsis ">
618- Remove exposed ports
618+ Set the Caddy container name explicitly
619619 </ span >
620620 </ a >
621621
622622</ li >
623623
624624 < li class ="md-nav__item ">
625- < a href ="#serve-http-only-in-the-stacks " class ="md-nav__link ">
625+ < a href ="#remove-exposed-ports " class ="md-nav__link ">
626626 < span class ="md-ellipsis ">
627- Serve HTTP-only in the stacks
627+ Remove exposed ports
628628 </ span >
629629 </ a >
630630
631631</ li >
632632
633633 < li class ="md-nav__item ">
634- < a href ="#set-the-caddy-container-name-explicitly " class ="md-nav__link ">
634+ < a href ="#serve-http-only-in-the-stacks " class ="md-nav__link ">
635635 < span class ="md-ellipsis ">
636- Set the Caddy container name explicitly
636+ Serve HTTP-only in the stacks
637637 </ span >
638638 </ a >
639639
@@ -733,6 +733,11 @@ <h1>Blue/Green Deployments</h1>
733733near-zero downtime and easy rollback.</ p >
734734< p > < img alt ="Blue/Green " src ="../assets/bluegreen.png " /> </ p >
735735< h2 id ="1-caddy "> 1. Caddy</ h2 >
736+ < h3 id ="set-the-caddy-container-name-explicitly "> Set the Caddy container name explicitly</ h3 >
737+ < p > This allows us to switch between the two stacks:</ p >
738+ < div class ="highlight "> < span class ="filename "> compose.yaml</ span > < pre > < span > </ span > < code > < span class ="nt "> caddy</ span > < span class ="p "> :</ span >
739+ < 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 >
740+ </ code > </ pre > </ div >
736741< h3 id ="remove-exposed-ports "> Remove exposed ports</ h3 >
737742< p > Remove the < code > caddy</ code > service's < code > ports:</ code > section in < code > compose.yaml</ code > .</ p >
738743< p > We'll no longer expose ports in the stacks, instead a simple "front proxy" will
@@ -744,11 +749,6 @@ <h3 id="serve-http-only-in-the-stacks">Serve HTTP-only in the stacks</h3>
744749< span class ="w "> </ span > < span class ="nt "> environment</ span > < span class ="p "> :</ span >
745750< 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 >
746751</ code > </ pre > </ div >
747- < h3 id ="set-the-caddy-container-name-explicitly "> Set the Caddy container name explicitly</ h3 >
748- < p > This allows us to switch between the two stacks:</ p >
749- < div class ="highlight "> < span class ="filename "> compose.yaml</ span > < pre > < span > </ span > < code > < span class ="nt "> caddy</ span > < span class ="p "> :</ span >
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 >
751- </ code > </ pre > </ div >
752752< h2 id ="2-postgres "> 2. Postgres</ h2 >
753753< p > Running two separate PostgreSQL instances and having them both simultaneously
754754access the same data directory within that shared volume is not recommended and
0 commit comments