Skip to content

Commit fb70a66

Browse files
authored
Update bluegreen.md
1 parent 7796ede commit fb70a66

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/bluegreen.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ near-zero downtime and easy rollback.
66

77
## 1. Caddy
88

9+
### Set the Caddy container name explicitly
10+
11+
This allows us to switch between the two stacks:
12+
13+
```yaml title="compose.yaml"
14+
caddy:
15+
container_name: ${STACK_NAME}_caddy
16+
```
17+
918
### Remove exposed ports
1019
1120
Remove the `caddy` service's `ports:` section in `compose.yaml`.
@@ -24,15 +33,6 @@ caddy:
2433
CADDY_SITE_ADDRESS: :80
2534
```
2635

27-
### Set the Caddy container name explicitly
28-
29-
This allows us to switch between the two stacks:
30-
31-
```yaml title="compose.yaml"
32-
caddy:
33-
container_name: ${STACK_NAME}_caddy
34-
```
35-
3636
## 2. Postgres
3737

3838
Running two separate PostgreSQL instances and having them both simultaneously

0 commit comments

Comments
 (0)