Skip to content

Instantly share code, notes, and snippets.

@shudarshon
Created January 8, 2019 11:11
Show Gist options
  • Save shudarshon/54cd7655be8d4fdedce184e8e3f95e45 to your computer and use it in GitHub Desktop.
Save shudarshon/54cd7655be8d4fdedce184e8e3f95e45 to your computer and use it in GitHub Desktop.
nginx proxy with docker compose
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