add log level

This commit is contained in:
mathieu 2024-05-14 19:00:44 +02:00
parent b5c735aa6c
commit 73b8f9dd71
2 changed files with 11 additions and 2 deletions

View File

@ -5,6 +5,8 @@ services:
image: traefik:latest image: traefik:latest
container_name: "traefik" container_name: "traefik"
restart: always restart: always
command:
- "--log.level=DEBUG"
ports: ports:
- "8888:80" - "8888:80"
- "8443:443" - "8443:443"
@ -24,8 +26,6 @@ services:
#- './conf/acme.json:/acme.json' #- './conf/acme.json:/acme.json'
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.api.rule=Path(/api) " - "traefik.http.routers.api.rule=Path(/api) "
- "traefik.http.routers.api.service=api@internal" - "traefik.http.routers.api.service=api@internal"
#- "traefik.http.routers.api.middlewares=auth" #- "traefik.http.routers.api.middlewares=auth"

View File

@ -11,10 +11,19 @@ entryPoints:
websecure: websecure:
address: ":443" address: ":443"
http:
routers:
my-router:
rule: "Path(`/foo`)"
service: service-foo
api: api:
insecure: true insecure: true
dashboard: true dashboard: true
entryPoint: "websecure" entryPoint: "websecure"
# docker: # docker:
# endpoint: "unix:///var/run/docker.sock" # endpoint: "unix:///var/run/docker.sock"
# exposedByDefault: false # exposedByDefault: false