Created
April 25, 2017 20:50
-
-
Save that0n3guy/92009a8cb33f2f99f90a03f7a9bf9e27 to your computer and use it in GitHub Desktop.
Using jwilder/nginx-proxy for local development
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: '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