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
14 lines
454 B
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
|