Browse Source

remove port 80

Let's Encrypt TLS challenge uses https 443/tcp to create/renew a certificate. 

Reference
https://doc.traefik.io/traefik/user-guides/docker-compose/acme-tls/
Yoshiaki Senda 3 years ago
parent
commit
cbed903ca7
1 changed files with 0 additions and 4 deletions
  1. 0 4
      compose/docker-compose.traefik.yml

+ 0 - 4
compose/docker-compose.traefik.yml

@@ -90,9 +90,6 @@ services:
       - "--certificatesresolvers.http.acme.email=YOUR_EMAIL"
       - "--certificatesresolvers.http.acme.storage=/letsencrypt/acme.json"
       - "--certificatesresolvers.http.acme.tlschallenge=true"
-      - "--entrypoints.web.address=:80"
-      - "--entrypoints.web.http.redirections.entryPoint.to=websecure"
-      - "--entrypoints.web.http.redirections.entryPoint.scheme=https"
       - "--entrypoints.websecure.address=:443"
       - "--entrypoints.websecure.http.tls=true"
       - "--entrypoints.websecure.http.tls.certResolver=http"
@@ -105,7 +102,6 @@ services:
       - ${TRAEFIK_DOCKER_HOST}:/var/run/docker.sock:ro
       - traefik_certs:/letsencrypt
     ports:
-      - "80:80"
       - "443:443"
   mq:
     container_name: mq