fix: update traefik logging
All checks were successful
Deploy / Prepare Build (push) Successful in 45s
All checks were successful
Deploy / Prepare Build (push) Successful in 45s
This commit is contained in:
parent
614f3bcc34
commit
cb056c842f
@ -6,6 +6,8 @@
|
||||
with_items:
|
||||
- "{{ data_folder }}/traefik"
|
||||
- "{{ data_folder }}/traefik/data"
|
||||
- "{{ data_folder }}/traefik/data/log"
|
||||
|
||||
|
||||
- name: Create a network
|
||||
docker_network:
|
||||
@ -39,14 +41,14 @@
|
||||
mode: "0600"
|
||||
when: not file_status.stat.exists
|
||||
|
||||
- name: Check if {{ data_folder }}/traefik/data/traefik.json.log exists
|
||||
- name: Check if traefik.json.log exists
|
||||
ansible.builtin.stat:
|
||||
path: "{{ data_folder }}/traefik/data/traefik.json.log"
|
||||
path: "{{ data_folder }}/traefik/data/log/traefik.json.log"
|
||||
register: file_status
|
||||
|
||||
- name: Creates {{ data_folder }}/traefik/data/traefik.json.log if it doesn't exists
|
||||
- name: Creates traefik.json.log if it doesn't exists
|
||||
ansible.builtin.file:
|
||||
path: "{{ data_folder }}/traefik/data/traefik.json.log"
|
||||
path: "{{ data_folder }}/traefik/data/log/traefik.json.log"
|
||||
state: touch
|
||||
owner: root
|
||||
group: root
|
||||
@ -71,7 +73,7 @@
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- "{{ data_folder }}/traefik/data/traefik.yml:/traefik.yml:ro"
|
||||
- "{{ data_folder }}/traefik/data/acme.json:/acme.json"
|
||||
- "{{ data_folder }}/traefik/data/traefik.json.log:/traefik.json.log"
|
||||
- "{{ data_folder }}/traefik/data/log:/var/log/traefik"
|
||||
- "{{ data_folder }}/traefik/data/config.yml:/config.yml:ro"
|
||||
labels:
|
||||
traefik.enable: "true"
|
||||
|
@ -18,7 +18,7 @@ serversTransport:
|
||||
|
||||
log:
|
||||
level: DEBUG
|
||||
filePath: /traefik.json.log
|
||||
filePath: /var/log/traefik/traefik.json.log
|
||||
format: json
|
||||
|
||||
providers:
|
||||
|
Loading…
x
Reference in New Issue
Block a user