version: "3.7" services: nginx-proxy: container_name: "nginx-proxy" image: "nginxproxy/nginx-proxy" 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" restart: "always" ports: - "80:80" - "443:443" acme-companion: container_name: "acme-companion" image: "nginxproxy/acme-companion" depends_on: - "nginx-proxy" volumes: - "acme:/etc/acme.sh" - "certs:/etc/nginx/certs" - "dhparam:/etc/nginx/dhparam" - "vhost:/etc/nginx/vhost.d" - "html:/usr/share/nginx/html" - "/var/run/docker.sock:/var/run/docker.sock:ro" environment: NGINX_PROXY_CONTAINER: "nginx-proxy" restart: "always" volumes: acme: certs: dhparam: vhost: html: