Move traefik log into external mount point
This commit is contained in:
parent
809fc8188e
commit
2f16ca6b98
2 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue