File tree Expand file tree Collapse file tree 1 file changed +2
-28
lines changed
Expand file tree Collapse file tree 1 file changed +2
-28
lines changed Original file line number Diff line number Diff 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
6841The _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:
8457docker 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
9064docker run -d \
You can’t perform that action at this time.
0 commit comments