services: nginx-proxy: volumes: - /var/run/docker.sock:/tmp/docker.sock:ro - ${PYTEST_MODULE_PATH}/cert_selection:/etc/nginx/certs:ro - ${PYTEST_MODULE_PATH}/acme_root:/usr/share/nginx/html:ro environment: DEBUG_ENDPOINT: "true" base: image: web environment: WEB_PORTS: "80" VIRTUAL_HOST: "nginx-proxy.tld" www: image: web environment: WEB_PORTS: "80" VIRTUAL_HOST: "www.nginx-proxy.tld" sub-www: image: web environment: WEB_PORTS: "80" VIRTUAL_HOST: "subdomain.www.nginx-proxy.tld" web1: image: web environment: WEB_PORTS: "80" VIRTUAL_HOST: "web1.nginx-proxy.tld"