From c48cd06fc169f58bad6d65a785f545533b745e6b Mon Sep 17 00:00:00 2001 From: mrjk Date: Sat, 16 Jul 2022 08:09:24 -0400 Subject: [PATCH] Fix: Traefik stack --- traefik/.env | 5 ++--- traefik/docker-compose.debug.yml | 1 + traefik/docker-compose.https.yml | 2 ++ traefik/docker-compose.yml | 6 +++--- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/traefik/.env b/traefik/.env index 664250e..9df03d4 100644 --- a/traefik/.env +++ b/traefik/.env @@ -2,11 +2,10 @@ APP_IMAGE=traefik APP_VERSION=v2.6.1 APP_PUBLIC_IP="127.0.0.1" -APP_NETWORK= +APP_NETWORK='' APP_DOMAIN=dev APP_ADMIN_EMAIL=admin@dev -# Let's encrypt config TRAEFIK_CERTRESOLV=default -TRAEFIK_CERTRESOLV_PROVIDER= +TRAEFIK_CERTRESOLV_PROVIDER='' diff --git a/traefik/docker-compose.debug.yml b/traefik/docker-compose.debug.yml index 0799e49..7179fec 100644 --- a/traefik/docker-compose.debug.yml +++ b/traefik/docker-compose.debug.yml @@ -5,4 +5,5 @@ services: - TRAEFIK_LOG_LEVEL=debug - TRAEFIK_ACCESSLOG=true - TRAEFIK_API_DEBUG=true + - TRAEFIK_ACCESSLOG_FILEPATH= diff --git a/traefik/docker-compose.https.yml b/traefik/docker-compose.https.yml index 6ba10c0..33df0b1 100644 --- a/traefik/docker-compose.https.yml +++ b/traefik/docker-compose.https.yml @@ -4,6 +4,8 @@ services: traefik: ports: - "$APP_PUBLIC_IP:443:443" + labels: + - "traefik.http.routers.dashboard.tls=true" environment: # Entrypoints diff --git a/traefik/docker-compose.yml b/traefik/docker-compose.yml index c2b57cb..d042c02 100644 --- a/traefik/docker-compose.yml +++ b/traefik/docker-compose.yml @@ -50,10 +50,10 @@ services: #### Labels define the behavior and rules of the traefik proxy for this container #### - "traefik.enable=true" # <== Enable traefik on itself to view dashboard and assign subdomain to view it - "traefik.http.routers.dashboard.rule=Host(`${APP_DOMAIN}`)" # <== Setting the domain for the dashboard - #- "traefik.http.routers.dashboard.service=api@internal" # <== Enabling the api to be a service to access + #- "traefik.http.routers.dashboard.service=api@internal" # <== Enabling the api to be a service to access - "traefik.http.routers.dashboard.service=dashboard" # <== Enabling the api to be a service to access - "traefik.http.routers.dashboard.entrypoints=$TRAEFIK_ENTRYPOINTS" - #- "traefik.http.routers.dashboard.tls=true" - #- "traefik.http.routers.dashboard.tls.certresolver=tls_barbu_it_net" + #- "traefik.http.routers.dashboard.tls=true" + - "traefik.http.routers.dashboard.tls.certresolver=$TRAEFIK_CERTRESOLV" - "traefik.http.services.dashboard.loadbalancer.server.port=8080"