File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed
Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -649,12 +649,8 @@ <h2 id="2-add-a-front-proxy">2. Add a Front Proxy</h2>
649649< div class ="highlight "> < span class ="filename "> Caddyfile</ span > < pre > < span > </ span > < code > api.myapp.com {
650650 reverse_proxy blue_caddy:80
651651}
652-
653- # Optionally point a second hostname to the idle stack for testing
654- next.myapp.com {
655- reverse_proxy green_caddy:80
656- }
657652</ code > </ pre > </ div >
653+ < p > Optionally, point a second hostname to the idle stack for testing.</ p >
658654< p > The front proxy manages TLS, so give it a persistent volume for certificates:</ p >
659655< div class ="highlight "> < pre > < span > </ span > < code > docker< span class ="w "> </ span > volume< span class ="w "> </ span > create< span class ="w "> </ span > caddy_data
660656</ code > </ pre > </ div >
@@ -688,14 +684,10 @@ <h2 id="3-deployingupgrading">3. Deploying/Upgrading</h2>
688684< p > Docker will use the directory name < code > green</ code > as the project name, creating
689685different containers, volumes and networks than the < code > blue</ code > stack.</ p >
690686< h3 id ="flip-traffic "> Flip traffic</ h3 >
691- < p > Point traffic to the < code > green</ code > stack, and make < code > blue </ code > idle :</ p >
687+ < p > Point traffic to the < code > green</ code > stack:</ p >
692688< div class ="highlight "> < span class ="filename "> Caddyfile</ span > < pre > < span > </ span > < code > api.myapp.com {
693689 reverse_proxy green_caddy:80
694690}
695-
696- next.myapp.com {
697- reverse_proxy blue_caddy:80
698- }
699691</ code > </ pre > </ div >
700692< p > Reload the front proxy's config:</ p >
701693< div class ="highlight "> < pre > < span > </ span > < code > docker< span class ="w "> </ span > < span class ="nb "> exec</ span > < span class ="w "> </ span > front-proxy< span class ="w "> </ span > caddy< span class ="w "> </ span > reload
You can’t perform that action at this time.
0 commit comments