Skip to content

Instantly share code, notes, and snippets.

@obi12341
Last active August 27, 2015 14:55
Show Gist options
  • Save obi12341/98e5fcc86dda4af33d30 to your computer and use it in GitHub Desktop.
Save obi12341/98e5fcc86dda4af33d30 to your computer and use it in GitHub Desktop.
nginx-proxy docker
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"
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