@@ -9,14 +9,14 @@ stack", now there is:
99
10101 . A ` blue ` stack
11112 . A ` green ` stack
12- 3 . A front proxy to direct traffic
12+ 3 . A proxy to direct traffic
13134 . An external Postgres.
1414
1515## 2. Adjust Caddy
1616
1717### Name the Caddy containers
1818
19- Naming the Caddy containers ` blue_caddy ` and ` green_caddy ` allows the front
19+ Naming the Caddy containers ` blue_caddy ` and ` green_caddy ` allows the
2020proxy to direct traffic to the correct stacks:
2121
2222``` yaml title="compose.yaml"
@@ -26,15 +26,15 @@ caddy:
2626
2727### Remove exposed ports
2828
29- We'll no longer expose ports in the stacks, instead a front proxy will sit in
29+ We'll no longer expose ports in the stacks, instead a proxy will sit in
3030front of the two stacks, proxying to them.
3131
3232So remove the ` caddy` service's `ports:` section in `compose.yaml`.
3333
3434# ## Serve HTTP-only in the stacks
3535
3636Set `CADDY_SITE_ADDRESS` to only `:80`, removing `:443` (leaving TLS
37- termination to the front proxy) :
37+ termination to the proxy) :
3838
3939` ` ` yaml title="compose.yaml"
4040caddy:
@@ -109,9 +109,9 @@ STACK_NAME=green docker compose up -d
109109Docker will use the directory name `green` as the project name, creating
110110different containers, volumes and networks than the `blue` stack.
111111
112- # # 5. Add a Front Proxy
112+ # # 5. Add a Proxy
113113
114- The _front proxy_ is a single container that binds ports `80` and `443` on the
114+ The proxy is a single container that binds ports `80` and `443` on the
115115server and routes requests into either the Blue or Green stack.
116116
117117On the server, create a simple `Caddyfile` :
@@ -156,7 +156,7 @@ api.myapp.com {
156156}
157157` ` `
158158
159- Reload the front proxy's config :
159+ Reload the proxy's config :
160160
161161` ` ` sh
162162docker exec front-proxy caddy reload
0 commit comments