1
0
Fork 0

Move traefik log into external mount point

This commit is contained in:
Florian RICHER 2023-08-18 18:10:37 +02:00
parent 809fc8188e
commit 2f16ca6b98
2 changed files with 6 additions and 3 deletions

View file

@ -1,9 +1,11 @@
log:
level: DEBUG
api:
dashboard: true
log:
filePath: "/var/log/traefik/traefik.log"
format: json
level: INFO
accessLog:
filePath: "/var/log/traefik/access.log"
format: json

View file

@ -18,6 +18,7 @@ services:
- ./config/traefik.yml:/traefik.yml:ro
- {{ server.work_dir }}/traefik/base/acme.json:/acme.json:rw
- {{ server.work_dir }}/traefik/base/access.log:/var/log/traefik/access.log:rw
- {{ server.work_dir }}/traefik/base/traefik.log:/var/log/traefik/traefik.log:rw
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
extra_hosts: