initial commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# Grafana
|
||||
|
||||
Deploy Grafana data visualization platform using Docker Compose.
|
||||
|
||||
## Description
|
||||
|
||||
Grafana is an analytics and monitoring platform with beautiful dashboards and alerting capabilities.
|
||||
|
||||
## Variables
|
||||
|
||||
### Optional
|
||||
|
||||
| Variable | Default | Description |
|
||||
|----------|---------|-------------|
|
||||
| `grafana_http_port` | `3000` | Web interface port |
|
||||
| `grafana_data_path` | `{{ app_dir }}/data` | Data storage |
|
||||
| `grafana_container_version` | `latest` | Grafana Docker image tag |
|
||||
|
||||
## Example
|
||||
|
||||
```yaml
|
||||
- role: patrickj.docker_apps.grafana
|
||||
vars:
|
||||
grafana_http_port: 3001
|
||||
```
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
app_name: grafana
|
||||
|
||||
grafana_container_name: "{{ app_name | default('grafana') }}"
|
||||
grafana_container_version: latest
|
||||
grafana_restart_policy: "{{ app_restart_policy }}"
|
||||
grafana_http_port: 3000
|
||||
grafana_data_path: "{{ app_dir }}/data"
|
||||
@@ -0,0 +1,14 @@
|
||||
---
|
||||
galaxy_info:
|
||||
author: Patrick Jaroszewski
|
||||
description: Deploy grafana with Docker Compose
|
||||
license: MIT
|
||||
|
||||
dependencies:
|
||||
- role: patrickj.docker_apps.docker_compose_app
|
||||
vars:
|
||||
app_role_name: grafana
|
||||
app_subdirectories:
|
||||
- "{{ grafana_data_path }}"
|
||||
app_backup_subdirectories:
|
||||
- "{{ grafana_data_path }}"
|
||||
@@ -0,0 +1,10 @@
|
||||
---
|
||||
services:
|
||||
grafana:
|
||||
image: "grafana/grafana-oss:{{ grafana_container_version }}"
|
||||
container_name: "{{ grafana_container_name }}"
|
||||
restart: "{{ grafana_restart_policy }}"
|
||||
ports:
|
||||
- "{{ grafana_http_port }}:3000"
|
||||
volumes:
|
||||
- "{{ grafana_data_path }}:/var/lib/grafana"
|
||||
Reference in New Issue
Block a user