template.yaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. ---
  2. kind: compose
  3. metadata:
  4. name: Grafana
  5. description: 'Grafana is an open-source platform for monitoring and observability that allows you to visualize and analyze
  6. metrics, logs, and traces from various data
  7. sources. It provides a powerful and flexible dashboarding solution for IT infrastructure and application monitoring.
  8. ## Prerequisites
  9. - **Project:** https://grafana.com/
  10. - **Documentation:** https://grafana.com/docs/grafana/latest/
  11. - **GitHub:** https://github.com/grafana/grafana'
  12. icon:
  13. provider: selfh
  14. id: grafana
  15. next_steps: 'Log in with the initial admin user:
  16. ```bash
  17. Username: admin
  18. Password: admin
  19. ```'
  20. version: 12.3.3
  21. author: Christian Lempa
  22. date: '2026-02-12'
  23. tags:
  24. - traefik
  25. - authentik
  26. schema: '1.2'
  27. spec:
  28. general:
  29. vars:
  30. service_name:
  31. default: grafana
  32. restart_policy:
  33. type: enum
  34. options:
  35. - unless-stopped
  36. - always
  37. - on-failure
  38. - 'no'
  39. default: unless-stopped
  40. required: true
  41. ports:
  42. vars:
  43. ports_http:
  44. default: 3000
  45. authentik:
  46. toggle: authentik_enabled
  47. vars:
  48. authentik_enabled:
  49. type: bool
  50. default: false
  51. description: Enable Authentik SSO integration
  52. authentik_url:
  53. type: url
  54. default: https://auth.home.arpa
  55. required: true
  56. needs: authentik_enabled=true
  57. authentik_slug:
  58. type: hostname
  59. default: grafana
  60. required: true
  61. needs: authentik_enabled=true
  62. authentik_client_id:
  63. type: str
  64. sensitive: true
  65. required: true
  66. needs: authentik_enabled=true
  67. authentik_client_secret:
  68. type: str
  69. sensitive: true
  70. required: true
  71. needs: authentik_enabled=true
  72. traefik:
  73. vars:
  74. traefik_host:
  75. default: grafana
  76. traefik_network:
  77. default: traefik
  78. type: str
  79. required: true
  80. traefik_domain:
  81. default: home.arpa
  82. type: str
  83. required: true
  84. traefik_enabled:
  85. type: bool
  86. default: false
  87. description: Enable Traefik integration
  88. traefik_tls:
  89. vars:
  90. traefik_tls_certresolver:
  91. type: str
  92. default: cloudflare
  93. required: true
  94. traefik_tls_enabled:
  95. type: bool
  96. default: false
  97. description: Enable Traefik TLS
  98. database:
  99. vars:
  100. database_type:
  101. type: enum
  102. options:
  103. - sqlite
  104. - postgres
  105. database_external:
  106. type: bool
  107. default: false
  108. description: Use external database
  109. needs: database_type=postgres
  110. database_name:
  111. type: str
  112. default: grafana
  113. needs: database_type=postgres
  114. database_user:
  115. type: str
  116. default: grafana
  117. needs: database_type=postgres
  118. database_password:
  119. type: str
  120. sensitive: true
  121. required: true
  122. needs: database_type=postgres
  123. database_host:
  124. type: str
  125. required: true
  126. needs: ["database_type=postgres", "database_external=true"]
  127. swarm:
  128. toggle: swarm_enabled
  129. vars:
  130. swarm_enabled:
  131. type: bool
  132. default: false
  133. description: Enable Docker Swarm mode
  134. swarm_placement_mode:
  135. type: str
  136. default: replicated
  137. description: The placement mode
  138. needs:
  139. - swarm_enabled=true
  140. swarm_replicas:
  141. type: int
  142. default: 1
  143. description: The number of replicas
  144. needs:
  145. - swarm_placement_mode=replicated
  146. swarm_placement_host:
  147. type: str
  148. default: ''
  149. description: The placement host
  150. needs:
  151. - swarm_placement_mode=replicated