version: "3.7" # Services requiring Lets Encrypt certificates should join the # 'nginx-proxy-network' network and define BOTH the environment # variables 'VIRTUAL_HOST' and 'LETSENCRYPT_HOST' to the DNS name # they use. # # This container requires the use of the nginx-proxy service. # # See more info here: https://github.com/nginx-proxy/acme-companion services: acme-companion: container_name: "acme-companion" image: "nginxproxy/acme-companion" restart: "always" environment: NGINX_PROXY_CONTAINER: "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" networks: - "nginx-proxy-network" volumes: acme: certs: external: true dhparam: external: true vhost: external: true html: external: true networks: nginx-proxy-network: external: true