Add bind mount for Grafana data

This commit is contained in:
Kris Lamoureux 2020-07-31 23:05:11 -04:00
parent 066fc82a76
commit 8970be5a31
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925
2 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,4 @@
prom_name: prometheus
grafana_name: grafana
prom_root: "/opt/{{ prom_name }}"
grafana_root: "/opt/{{ prom_name }}/grafana"

View File

@ -53,6 +53,7 @@
image: grafana/grafana:{{ grafana_version }}
state: started
restart_policy: always
volumes: "{{ grafana_root }}:/var/lib/grafana"
networks_cli_compatible: true
networks:
- name: "{{ prom_name }}"