You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ services:
42
42
```shell
43
43
$ docker-compose up
44
44
$ curl -H "Host: whoami.local" localhost
45
-
I''m 5b129ab83266
45
+
I'm 5b129ab83266
46
46
```
47
47
48
48
### Multiple Ports
@@ -92,6 +92,14 @@ image and the official [nginx](https://registry.hub.docker.com/_/nginx/) image.
92
92
93
93
You may want to do this to prevent having the docker socket bound to a publicly exposed container service.
94
94
95
+
You can demo this pattern with docker-compose:
96
+
97
+
```console
98
+
$ docker-compose --file docker-compose-separate-containers.yml up
99
+
$ curl -H "Host: whoami.local" localhost
100
+
I'm 5b129ab83266
101
+
```
102
+
95
103
To run nginx proxy as a separate container you'll need to have [nginx.tmpl](https://github.com/jwilder/nginx-proxy/blob/master/nginx.tmpl) on your host system.
0 commit comments