Fix: Traefik stack

This commit is contained in:
mrjk 2022-07-16 08:09:24 -04:00
parent f9b355a446
commit c48cd06fc1
4 changed files with 8 additions and 6 deletions

View File

@ -2,11 +2,10 @@ APP_IMAGE=traefik
APP_VERSION=v2.6.1 APP_VERSION=v2.6.1
APP_PUBLIC_IP="127.0.0.1" APP_PUBLIC_IP="127.0.0.1"
APP_NETWORK= APP_NETWORK=''
APP_DOMAIN=dev APP_DOMAIN=dev
APP_ADMIN_EMAIL=admin@dev APP_ADMIN_EMAIL=admin@dev
# Let's encrypt config
TRAEFIK_CERTRESOLV=default TRAEFIK_CERTRESOLV=default
TRAEFIK_CERTRESOLV_PROVIDER= TRAEFIK_CERTRESOLV_PROVIDER=''

View File

@ -5,4 +5,5 @@ services:
- TRAEFIK_LOG_LEVEL=debug - TRAEFIK_LOG_LEVEL=debug
- TRAEFIK_ACCESSLOG=true - TRAEFIK_ACCESSLOG=true
- TRAEFIK_API_DEBUG=true - TRAEFIK_API_DEBUG=true
- TRAEFIK_ACCESSLOG_FILEPATH=

View File

@ -4,6 +4,8 @@ services:
traefik: traefik:
ports: ports:
- "$APP_PUBLIC_IP:443:443" - "$APP_PUBLIC_IP:443:443"
labels:
- "traefik.http.routers.dashboard.tls=true"
environment: environment:
# Entrypoints # Entrypoints

View File

@ -50,10 +50,10 @@ services:
#### Labels define the behavior and rules of the traefik proxy for this container #### #### 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.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.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.service=dashboard" # <== Enabling the api to be a service to access
- "traefik.http.routers.dashboard.entrypoints=$TRAEFIK_ENTRYPOINTS" - "traefik.http.routers.dashboard.entrypoints=$TRAEFIK_ENTRYPOINTS"
#- "traefik.http.routers.dashboard.tls=true" #- "traefik.http.routers.dashboard.tls=true"
#- "traefik.http.routers.dashboard.tls.certresolver=tls_barbu_it_net" - "traefik.http.routers.dashboard.tls.certresolver=$TRAEFIK_CERTRESOLV"
- "traefik.http.services.dashboard.loadbalancer.server.port=8080" - "traefik.http.services.dashboard.loadbalancer.server.port=8080"