🔧 Add volume for grafana configuration
We need to make custom configurations for grafana.
This commit is contained in:
parent
0ebeff9225
commit
612d666b2e
1 changed files with 4 additions and 1 deletions
|
@ -393,6 +393,8 @@
|
|||
- path: "{{ data_dir }}/grafana/data"
|
||||
owner: 472
|
||||
mode: "0755"
|
||||
- path: "{{ data_dir }}/grafana/etc"
|
||||
mode: "0755"
|
||||
|
||||
- name: Ensure container for grafana is running
|
||||
docker_container:
|
||||
|
@ -402,6 +404,7 @@
|
|||
- "127.0.0.1:{{ grafana_host_port }}:3000"
|
||||
volumes:
|
||||
- "{{ data_dir }}/grafana/data:/var/lib/grafana"
|
||||
- "{{ data_dir }}/grafana/etc:/etc/grafana"
|
||||
env:
|
||||
TZ: "{{ timezone }}"
|
||||
GF_SECURITY_ADMIN_PASSWORD: "{{ grafana_admin_password }}"
|
||||
|
|
Loading…
Reference in a new issue