From 73b8f9dd7180aafb5b52e4f75072893122f32dc2 Mon Sep 17 00:00:00 2001 From: mathieu Date: Tue, 14 May 2024 19:00:44 +0200 Subject: [PATCH] add log level --- docker-compose.yml | 4 ++-- traefik.yml | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index ae9bc4d..435702e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,8 @@ services: image: traefik:latest container_name: "traefik" restart: always + command: + - "--log.level=DEBUG" ports: - "8888:80" - "8443:443" @@ -24,8 +26,6 @@ services: #- './conf/acme.json:/acme.json' labels: - "traefik.enable=true" - - - "traefik.http.routers.api.rule=Path(/api) " - "traefik.http.routers.api.service=api@internal" #- "traefik.http.routers.api.middlewares=auth" diff --git a/traefik.yml b/traefik.yml index 1e182c1..51a59fd 100644 --- a/traefik.yml +++ b/traefik.yml @@ -11,10 +11,19 @@ entryPoints: websecure: address: ":443" + +http: + routers: + my-router: + rule: "Path(`/foo`)" + service: service-foo + + api: insecure: true dashboard: true entryPoint: "websecure" + # docker: # endpoint: "unix:///var/run/docker.sock" # exposedByDefault: false