You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
454 B

  1. version: '3'
  2. services:
  3. www:
  4. image: nginx
  5. volumes:
  6. - ./www:/usr/share/nginx/html:ro
  7. restart: unless-stopped
  8. labels:
  9. - traefik.enable=true
  10. - traefik.https.routers.www.rule=(Host(`example.com`) || Host(`www.example.com`))
  11. - traefik.https.routers.www.tls.certResolver=myresolver
  12. - traefik.https.routers.www.tls.domains[0].main=example.com
  13. - traefik.https.routers.www.tls.domains[0].sans=www.example.com