template.yaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. ---
  2. kind: compose
  3. metadata:
  4. name: GitLab
  5. description: >
  6. GitLab is a web-based DevOps lifecycle tool that provides a Git repository
  7. manager providing wiki, issue-tracking, and CI/CD pipeline features, using
  8. an open-source license, developed by GitLab Inc.
  9. Project: https://about.gitlab.com/
  10. Source: https://gitlab.com/gitlab-org/gitlab
  11. Documentation: https://docs.gitlab.com/
  12. version: 18.3.1-ce.0
  13. author: Christian Lempa
  14. date: '2025-09-28'
  15. tags:
  16. - git
  17. - ci-cd
  18. spec:
  19. general:
  20. vars:
  21. service_name:
  22. default: "gitlab"
  23. container_name:
  24. default: "gitlab"
  25. external_url:
  26. type: str
  27. description: External URL for GitLab (e.g., https://gitlab.example.com)
  28. default: 'https://gitlab.example.com'
  29. ssh_port:
  30. type: int
  31. description: SSH port for Git operations
  32. default: 2424
  33. ports:
  34. vars:
  35. ports_enabled:
  36. type: bool
  37. description: Expose HTTP/HTTPS ports (disabled if using Traefik)
  38. default: true
  39. ports_http:
  40. type: int
  41. description: HTTP port (disabled if using Traefik)
  42. default: 80
  43. ports_https:
  44. type: int
  45. description: HTTPS port (disabled if using Traefik)
  46. default: 443
  47. traefik:
  48. vars:
  49. traefik_host:
  50. default: gitlab.home.arpa
  51. registry:
  52. description: GitLab Container Registry configuration
  53. required: false
  54. toggle: registry_enabled
  55. vars:
  56. registry_enabled:
  57. type: bool
  58. description: Enable GitLab Container Registry
  59. default: false
  60. registry_external_url:
  61. type: str
  62. description: External URL for Container Registry
  63. default: 'https://registry.example.com'
  64. registry_hostname:
  65. type: str
  66. description: Hostname for Container Registry (when using Traefik)
  67. default: registry.example.com
  68. registry_port:
  69. type: int
  70. description: Internal port for Container Registry
  71. default: 5678