Files
auto-server/use_ssl/nginx-proxy/docker-compose.yml
T
2020-12-11 02:37:18 +08:00

34 lines
834 B
YAML

version: "3.6"
services:
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "443:443"
- "80:80"
environment:
- DHPARAM_GENERATION=false
labels:
- com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- nginx-certs:/etc/nginx/certs
- nginx-vhost:/etc/nginx/vhost.d
- nginx-share:/usr/share/nginx/html
nginx-letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
depends_on:
- nginx-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- nginx-certs:/etc/nginx/certs
- nginx-vhost:/etc/nginx/vhost.d
- nginx-share:/usr/share/nginx/html
volumes:
nginx-certs:
nginx-vhost:
nginx-share:
networks:
default:
external:
name: nginx-proxy