Skip to content

Instantly share code, notes, and snippets.

@that0n3guy
Created April 25, 2017 20:50
Show Gist options
  • Save that0n3guy/92009a8cb33f2f99f90a03f7a9bf9e27 to your computer and use it in GitHub Desktop.
Save that0n3guy/92009a8cb33f2f99f90a03f7a9bf9e27 to your computer and use it in GitHub Desktop.
Using jwilder/nginx-proxy for local development
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
# from https://github.com/jwilder/nginx-proxy/issues/502
# I also have to put this at the bottom of all other dev docker-compose files.
# I ran this as well, needs to be run once per docker SERVER: docker network create nginx-proxy
# This is needed so nginx-proxy can be used across compose files.
networks:
default:
external:
name: nginx-proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment