blob: b408424a236528e971dac0e7e2fd958c3eae4725 (
plain) (
tree)
|
|
version: "3.7"
# Services requiring reverse proxy functionality should join the
# 'nginx-proxy-network' network and define the environment variable
# 'VIRTUAL_HOST' to the DNS name they use.
#
# This container works with or without the acme-companion service.
#
# See more info here: https://github.com/nginx-proxy/nginx-proxy
services:
nginx-proxy:
container_name: "nginx-proxy"
image: "nginxproxy/nginx-proxy"
restart: "always"
volumes:
- "certs:/etc/nginx/certs"
- "dhparam:/etc/nginx/dhparam"
- "vhost:/etc/nginx/vhost.d"
- "html:/usr/share/nginx/html"
- "/var/run/docker.sock:/tmp/docker.sock:ro"
networks:
- "nginx-proxy-network"
ports:
- "80:80"
- "443:443"
volumes:
certs:
name: "certs"
dhparam:
name: "dhparam"
vhost:
name: "vhost"
html:
name: "html"
networks:
nginx-proxy-network:
name: "nginx-proxy-network"
|