version: '2' services: nginx-proxy: image: nginxproxy/nginx-proxy:alpine restart: always ports: - "80:80" - "443:443" environment: - ENABLE_IPV6=true volumes: - ./conf.d:/etc/nginx/conf.d - ./vhost.d:/etc/nginx/vhost.d:ro - ./certs:/etc/nginx/certs:ro - /var/run/docker.sock:/tmp/docker.sock:ro networks: - nginx-proxy networks: nginx-proxy: external: true