Created
January 8, 2019 11:11
-
-
Save shudarshon/54cd7655be8d4fdedce184e8e3f95e45 to your computer and use it in GitHub Desktop.
nginx proxy with docker compose
This file contains hidden or 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: '2' | |
services: | |
proxy: | |
image: jwilder/nginx-proxy | |
ports: | |
- "80:80" | |
volumes: | |
- /var/run/docker.sock:/tmp/docker.sock:ro | |
environment: | |
- DEFAULT_HOST=proxy.example | |
webapp: | |
image: katacoda/docker-http-server | |
ports: | |
- "80" | |
environment: | |
- VIRTUAL_HOST=proxy.example |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment