Created
July 7, 2019 10:28
-
-
Save ycjcl868/d0bb848abc035009ba017d1288db88c4 to your computer and use it in GitHub Desktop.
nginx-proxy
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: '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