change port variables from nginx to trafik

This commit is contained in:
Mahmoud Elewa 2020-05-31 07:43:41 +00:00
parent 227591cfb5
commit b5419c352d

View File

@ -1624,17 +1624,17 @@ services:
- "--providers.docker.exposedbydefault=false" - "--providers.docker.exposedbydefault=false"
- "--accesslog.filepath=/data/access.log" - "--accesslog.filepath=/data/access.log"
# entrypoints # entrypoints
- "--entrypoints.http.address=:${NGINX_HOST_HTTP_PORT}" - "--entrypoints.http.address=:${TRAEFIK_HOST_HTTP_PORT}"
- "--entrypoints.http.http.redirections.entrypoint.to=https" - "--entrypoints.http.http.redirections.entrypoint.to=https"
- "--entrypoints.https.address=:${NGINX_HOST_HTTPS_PORT}" - "--entrypoints.https.address=:${TRAEFIK_HOST_HTTPS_PORT}"
- "--entrypoints.traefik.address=:${TRAEFIK_DASHBOARD_PORT}" - "--entrypoints.traefik.address=:${TRAEFIK_DASHBOARD_PORT}"
# certificatesresolvers # certificatesresolvers
- "--certificatesresolvers.letsencrypt.acme.email=${ACME_EMAIL}" - "--certificatesresolvers.letsencrypt.acme.email=${ACME_EMAIL}"
- "--certificatesresolvers.letsencrypt.acme.storage=/data/acme.json" - "--certificatesresolvers.letsencrypt.acme.storage=/data/acme.json"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=http" - "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=http"
ports: ports:
- "${NGINX_HOST_HTTP_PORT}:${TRAEFIK_HOST_HTTP_PORT}" - "${TRAEFIK_HOST_HTTP_PORT}:${TRAEFIK_HOST_HTTP_PORT}"
- "${NGINX_HOST_HTTPS_PORT}:${TRAEFIK_HOST_HTTPS_PORT}" - "${TRAEFIK_HOST_HTTPS_PORT}:${TRAEFIK_HOST_HTTPS_PORT}"
- "${TRAEFIK_DASHBOARD_PORT}:${TRAEFIK_DASHBOARD_PORT}" - "${TRAEFIK_DASHBOARD_PORT}:${TRAEFIK_DASHBOARD_PORT}"
networks: networks:
- frontend - frontend