Skip to content

Commit 1436432

Browse files
authored
Update bluegreen.md
1 parent 8643318 commit 1436432

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/bluegreen.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ stack", now there is:
99

1010
1. A `blue` stack
1111
2. A `green` stack
12-
3. A front proxy to direct traffic
12+
3. A proxy to direct traffic
1313
4. 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
2020
proxy 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
3030
front of the two stacks, proxying to them.
3131
3232
So remove the `caddy` service's `ports:` section in `compose.yaml`.
3333

3434
### Serve HTTP-only in the stacks
3535

3636
Set `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"
4040
caddy:
@@ -109,9 +109,9 @@ STACK_NAME=green docker compose up -d
109109
Docker will use the directory name `green` as the project name, creating
110110
different 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
115115
server and routes requests into either the Blue or Green stack.
116116

117117
On 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
162162
docker exec front-proxy caddy reload

0 commit comments

Comments
 (0)