Skip to content

Commit 9a3f226

Browse files
committed
Update bluegreen
1 parent 3e8be73 commit 9a3f226

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/bluegreen.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@ Remove the `caddy` service's `ports:` section in `compose.yaml`.
1313
We'll no longer expose ports in the stacks, instead a simple "front proxy" will
1414
sit in front of the two stacks, proxying to the active stack.
1515

16-
### Set the Caddy container name explicitly
16+
### Serve HTTP-only in the stacks
1717

18-
This allows us to switch between the two stacks:
18+
Set `CADDY_SITE_ADDRESS` to only `:80`, removing `:443` (leaving TLS
19+
termination to the front proxy):
1920

2021
```yaml title="compose.yaml"
2122
caddy:
22-
container_name: ${STACK_NAME}_caddy
23+
environment:
24+
CADDY_SITE_ADDRESS: :80
2325
```
2426
25-
### Serve http-only in the stacks
27+
### Set the Caddy container name explicitly
2628
27-
Set `CADDY_SITE_ADDRESS` to only `:80` (leaving TLS termination to the front
28-
proxy):
29+
This allows us to switch between the two stacks:
2930
3031
```yaml title="compose.yaml"
3132
caddy:
32-
environment:
33-
CADDY_SITE_ADDRESS: :80
33+
container_name: ${STACK_NAME}_caddy
3434
```
3535
3636
### Move Postgres to its own unique container

0 commit comments

Comments
 (0)