rice/docker-host/setup/tasks/grafana.yml
shockrah 30ee715264 + Setting up Grafana service (metrics.lablad)
+ Reverse proxy entry for nginx routing

This is the first step for establishing a goal for the server's logging stack
2022-04-14 20:43:10 -07:00

27 lines
576 B
YAML

---
- hosts: leftcoastlab
become: yes
tasks:
- name: Include Vars
include_vars:
dir: ../vars
- name: Create Grafana Volume
community.docker.docker_volume:
name: grafana-volume
- name: Setup Grafana Container(latest)
community.docker.docker_container:
name: grafana
image: grafana/grafana-oss:latest
pull: yes
restart_policy: always
recreate: yes
timeout: 120
ports:
- "{{GRAFANA_PORT}}:3000"
volumes:
- "grafana-volume:/var/lib/grafana/"