Add bind mount for Grafana data
This commit is contained in:
parent
066fc82a76
commit
8970be5a31
@ -1,3 +1,4 @@
|
|||||||
prom_name: prometheus
|
prom_name: prometheus
|
||||||
grafana_name: grafana
|
grafana_name: grafana
|
||||||
prom_root: "/opt/{{ prom_name }}"
|
prom_root: "/opt/{{ prom_name }}"
|
||||||
|
grafana_root: "/opt/{{ prom_name }}/grafana"
|
||||||
|
@ -53,6 +53,7 @@
|
|||||||
image: grafana/grafana:{{ grafana_version }}
|
image: grafana/grafana:{{ grafana_version }}
|
||||||
state: started
|
state: started
|
||||||
restart_policy: always
|
restart_policy: always
|
||||||
|
volumes: "{{ grafana_root }}:/var/lib/grafana"
|
||||||
networks_cli_compatible: true
|
networks_cli_compatible: true
|
||||||
networks:
|
networks:
|
||||||
- name: "{{ prom_name }}"
|
- name: "{{ prom_name }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user