2025-07-12 23:41:13 -04:00

22 lines
558 B
YAML

- name: Create data folder on NAS
ansible.builtin.include_role:
role: docker/container-data
vars:
dir_name: "grafana"
- name: Set facts
ansible.builtin.set_fact:
data_dir: "{{ container_data_base_path }}/grafana"
- name: Deploy grafana container
community.docker.docker_container:
name: grafana
image: grafana/grafana-oss
state: started
restart_policy: unless-stopped
env:
GF_SERVER_ROOT_URL: "https://dash.lan.thegrind.dev"
ports:
- '3000:3000'
volumes:
- "{{ data_dir }}:/var/lib/grafana"