Last active
August 27, 2015 14:55
-
-
Save obi12341/98e5fcc86dda4af33d30 to your computer and use it in GitHub Desktop.
nginx-proxy docker
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
proxy: | |
build: . | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- "/var/run/docker.sock:/tmp/docker.sock:ro" | |
- "/root/nginx-proxy/certs:/etc/nginx/certs" | |
- "/root/nginx-proxy/htpasswd:/etc/nginx/htpasswd" |
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
FROM jwilder/nginx-proxy | |
RUN { \ | |
echo 'server_tokens off;'; \ | |
echo 'client_max_body_size 100M;'; \ | |
} > /etc/nginx/conf.d/my_proxy.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment