Skip to content

Commit 7796ede

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/bluegreen.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ caddy:
3333
container_name: ${STACK_NAME}_caddy
3434
```
3535
36-
## Postgres
36+
## 2. Postgres
3737
3838
Running two separate PostgreSQL instances and having them both simultaneously
3939
access the same data directory within that shared volume is not recommended and
4040
can lead to data corruption.
4141
4242
So we need to move Postgres out of the compose file and start it separately.
4343
44-
### Share volumes between the stacks
44+
## 3. Volumes
4545
4646
To share data between the two stacks (uploads, etc.), give volumes explicit
4747
names:
@@ -52,7 +52,7 @@ volumes:
5252
name: user-data
5353
```
5454
55-
## 3. Bring up two Stacks
55+
## 4. Bring up two Stacks
5656
5757
Deploying is the same as [before](deploying.md), but now we're deploying the
5858
_idle stack_. For this example, `green` is idle so that's the one we're
@@ -76,7 +76,7 @@ docker compose up -d
7676
Docker will use the directory name `green` as the project name, creating
7777
different containers, volumes and networks than the `blue` stack.
7878

79-
## 3. Add a Front Proxy
79+
## 5. Add a Front Proxy
8080

8181
The _front proxy_ is a single container that binds ports `80` and `443` on the
8282
server and routes requests into either the Blue or Green stack.
@@ -111,7 +111,7 @@ docker run -d \
111111
caddy:2
112112
```
113113

114-
## 4. Upgrading
114+
## 6. Upgrading
115115

116116
## Flip traffic
117117

0 commit comments

Comments
 (0)