services/traefik/docker-compose.secure.yml

27 lines
785 B
YAML
Raw Normal View History

version: "3.8"
networks:
default:
driver: bridge
services:
2021-12-09 17:56:07 +01:00
traefik:
ports:
- target: 443
published: 443
protocol: tcp
mode: host
command:
- --providers.file.filename=/traefik/dynamic_conf.toml
2021-12-09 17:56:07 +01:00
- --entrypoints.websecure.address=:443
2021-12-09 17:56:07 +01:00
- --certificatesresolvers.letsencrypt.acme.httpchallenge=true
- --certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web
- --certificatesresolvers.letsencrypt.acme.email=${TRAEFIK_EMAIL}
- --certificatesresolvers.letsencrypt.acme.storage=/traefik/acme.json
labels:
traefik.http.routers.traefik.entrypoints: 'websecure'
traefik.http.routers.traefik.tls.certResolver: 'letsencrypt'
traefik.http.routers.traefik.priority: '2000'