Skip to content

Commit db381a2

Browse files
committed
Adjust bluegreen doc
1 parent e85c46b commit db381a2

File tree

1 file changed

+2
-28
lines changed

1 file changed

+2
-28
lines changed

docs/bluegreen.md

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -36,33 +36,6 @@ volumes:
3636
name: user-data
3737
```
3838
39-
### Make the networks external
40-
41-
The front proxy needs to connect to both `blue_default` and `green_default`
42-
networks. This makes it easier to start the front proxy regardless of whether
43-
the stacks are up:
44-
45-
```yaml title="compose.yaml"
46-
networks:
47-
default:
48-
external: true
49-
```
50-
51-
In the override file, don't use external networks:
52-
53-
```yaml title="compose.override.yaml"
54-
networks:
55-
default:
56-
external: false
57-
```
58-
59-
Shell into the server and manually create the two networks:
60-
61-
```sh
62-
docker network create blue_default
63-
docker network create green_default
64-
```
65-
6639
## 3. Add a Front Proxy
6740
6841
The _front proxy_ is a single container that binds ports `80` and `443` on the
@@ -84,7 +57,8 @@ The front proxy manages TLS, so give it a persistent volume for certificates:
8457
docker volume create caddy_data
8558
```
8659

87-
Start the proxy, attaching it to both networks:
60+
Start the proxy, attaching it to both networks – this requires both stacks to
61+
be up first, so the networks exist:
8862

8963
```sh
9064
docker run -d \

0 commit comments

Comments
 (0)