@@ -33,15 +33,15 @@ caddy:
3333 container_name : ${STACK_NAME}_caddy
3434` ` `
3535
36- ## Postgres
36+ ## 2. Postgres
3737
3838Running two separate PostgreSQL instances and having them both simultaneously
3939access the same data directory within that shared volume is not recommended and
4040can lead to data corruption.
4141
4242So 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
4646To share data between the two stacks (uploads, etc.), give volumes explicit
4747names:
@@ -52,7 +52,7 @@ volumes:
5252 name : user-data
5353` ` `
5454
55- ## 3 . Bring up two Stacks
55+ ## 4 . Bring up two Stacks
5656
5757Deploying 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
7676Docker will use the directory name `green` as the project name, creating
7777different containers, volumes and networks than the `blue` stack.
7878
79- # # 3 . Add a Front Proxy
79+ # # 5 . Add a Front Proxy
8080
8181The _front proxy_ is a single container that binds ports `80` and `443` on the
8282server 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