Created
January 11, 2018 11:01
-
-
Save felipebn/81672a3a71a95e1c7c2e53d4334ab42b to your computer and use it in GitHub Desktop.
Docker compose file to exemplify how to place a automatic reverse proxy in front of containers (WINDOWS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.4' | |
services: | |
nginx-proxy: | |
image: jwilder/nginx-proxy | |
ports: | |
- "80:80" | |
environment: | |
#192.168.65.2 is (usually) the docker host, discovered by checking which networks were reachable from a container | |
- "DOCKER_HOST=tcp://192.168.65.2:2375" | |
whoami: | |
image: jwilder/whoami | |
environment: | |
- VIRTUAL_HOST=whoami.local | |
other: | |
image: jwilder/whoami | |
environment: | |
- VIRTUAL_HOST=other.local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment