Last active
March 11, 2019 06:00
-
-
Save extralam/fa2335e02b7a0bbb8b65b6b7828f59ea to your computer and use it in GitHub Desktop.
nginx-proxy for docker
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: '3' | |
services: | |
nginx-proxy: | |
image: jwilder/nginx-proxy | |
container_name: nginx-proxy | |
networks: | |
- front | |
- back | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- /var/run/docker.sock:/tmp/docker.sock:ro | |
# - ../vhost.d:/etc/nginx/vhost.d:ro | |
networks: | |
front: | |
driver: bridge | |
back: | |
driver: bridge |
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
mkdir httpproxy && | |
cd httpproxy && | |
mkdir docker && cd docker && | |
wget https://gist.githubusercontent.com/extralam/fa2335e02b7a0bbb8b65b6b7828f59ea/raw/87489fa3c7a9a1c78b283a5a4936c3aa57661692/docker-compose.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment