template.yaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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.1
  21. author: Christian Lempa
  22. date: '2025-12-16'
  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. vars:
  47. authentik_url:
  48. default: https://auth.home.arpa
  49. authentik_slug:
  50. default: grafana
  51. authentik_client_id:
  52. type: str
  53. sensitive: true
  54. required: true
  55. authentik_client_secret:
  56. type: str
  57. sensitive: true
  58. required: true
  59. authentik_enabled:
  60. type: bool
  61. default: false
  62. description: Enable Authentik SSO integration
  63. traefik:
  64. vars:
  65. traefik_host:
  66. default: grafana
  67. traefik_network:
  68. default: traefik
  69. type: str
  70. required: true
  71. traefik_domain:
  72. default: home.arpa
  73. type: str
  74. required: true
  75. traefik_enabled:
  76. type: bool
  77. default: false
  78. description: Enable Traefik integration
  79. traefik_tls:
  80. vars:
  81. traefik_tls_certresolver:
  82. type: str
  83. default: cloudflare
  84. required: true
  85. traefik_tls_enabled:
  86. type: bool
  87. default: false
  88. description: Enable Traefik TLS
  89. database:
  90. vars:
  91. database_type:
  92. options:
  93. - sqlite
  94. - postgres
  95. database_name:
  96. default: grafana
  97. database_user:
  98. default: grafana
  99. database_host:
  100. type: str
  101. required: true
  102. database_password:
  103. type: str
  104. sensitive: true
  105. required: true
  106. database_external:
  107. type: bool
  108. default: false
  109. description: Use external database
  110. swarm:
  111. vars:
  112. swarm_enabled:
  113. type: bool
  114. default: false
  115. description: Enable Docker Swarm mode
  116. swarm_placement_host:
  117. type: str
  118. default: ''
  119. description: The placement host
  120. swarm_placement_mode:
  121. type: str
  122. default: replicated
  123. description: The placement mode
  124. swarm_replicas:
  125. type: int
  126. default: 1
  127. description: The number of replicas