template.yaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ---
  2. kind: compose
  3. metadata:
  4. name: Gitea
  5. description: 'Self-hosted Git service with web interface. Gitea is a painless, self-hosted Git service
  6. written in Go. It''s similar to GitHub, Bitbucket, and GitLab, providing Git repository
  7. hosting, code review, team collaboration, and more.
  8. ## Prerequisites
  9. - :info: Gitea supports multiple database backends. You can choose between SQLite (default),
  10. PostgreSQL, or MySQL. SQLite is suitable for small deployments, while PostgreSQL and MySQL
  11. are recommended for larger installations.
  12. ## References
  13. - **Project:** https://gitea.io/
  14. - **Documentation:** https://docs.gitea.io/
  15. - **GitHub:** https://github.com/go-gitea/gitea'
  16. icon:
  17. provider: selfh
  18. id: gitea
  19. version: 1.25.4
  20. author: Christian Lempa
  21. date: '2026-01-22'
  22. tags:
  23. - traefik
  24. schema: '1.2'
  25. spec:
  26. general:
  27. vars:
  28. service_name:
  29. default: gitea
  30. container_timezone:
  31. type: str
  32. user_uid:
  33. type: int
  34. default: 1000
  35. user_gid:
  36. type: int
  37. default: 1000
  38. restart_policy:
  39. type: enum
  40. options:
  41. - unless-stopped
  42. - always
  43. - on-failure
  44. - 'no'
  45. default: unless-stopped
  46. required: true
  47. gitea_url:
  48. description: Public URL
  49. type: str
  50. needs:
  51. - traefik_enabled=false
  52. default: https://git.example.com
  53. database:
  54. ports:
  55. vars:
  56. ports_http:
  57. default: 3000
  58. ports_ssh:
  59. default: 2221
  60. traefik:
  61. vars:
  62. traefik_host:
  63. default: gitea
  64. traefik_network:
  65. default: traefik
  66. type: str
  67. required: true
  68. traefik_domain:
  69. default: home.arpa
  70. type: str
  71. required: true
  72. traefik_enabled:
  73. type: bool
  74. default: false
  75. description: Enable Traefik integration
  76. traefik_tls:
  77. vars:
  78. traefik_tls_certresolver:
  79. type: str
  80. default: cloudflare
  81. required: true
  82. traefik_tls_enabled:
  83. type: bool
  84. default: false
  85. description: Enable Traefik TLS