Skip to content

Instantly share code, notes, and snippets.

@ycjcl868
Created July 7, 2019 10:28
Show Gist options
  • Save ycjcl868/d0bb848abc035009ba017d1288db88c4 to your computer and use it in GitHub Desktop.
Save ycjcl868/d0bb848abc035009ba017d1288db88c4 to your computer and use it in GitHub Desktop.
nginx-proxy
version: '2'
services:
nginx-proxy:
image: jwilder/nginx-proxy:latest
container_name: nginx-proxy
privileged: true
ports:
- 80:80
volumes:
- ./data/htpasswd:/etc/nginx/htpasswd
- ./data/conf.d:/etc/nginx/conf.d
- /etc/nginx/vhost.d
- /usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
network_mode: "bridge"
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment