version: '3' services: www: image: nginx volumes: - ./www:/usr/share/nginx/html:ro restart: unless-stopped labels: - traefik.enable=true - traefik.https.routers.www.rule=(Host(`example.com`) || Host(`www.example.com`)) - traefik.https.routers.www.tls.certResolver=myresolver - traefik.https.routers.www.tls.domains[0].main=example.com - traefik.https.routers.www.tls.domains[0].sans=www.example.com