Skip to content

Instantly share code, notes, and snippets.

@tugrulcan
Last active May 16, 2017 20:53
Show Gist options
  • Save tugrulcan/a88002cb03e18a3fadbd2434d7e394c2 to your computer and use it in GitHub Desktop.
Save tugrulcan/a88002cb03e18a3fadbd2434d7e394c2 to your computer and use it in GitHub Desktop.
version: '2'
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
nginx:
image: nginx:stable-alpine
volumes:
- ./www:/usr/share/nginx/html
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
expose:
- "80"
container_name: nginx
environment:
- VIRTUAL_HOST=docker.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment