template.yaml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. - devops
  18. - ci-cd
  19. spec:
  20. general:
  21. vars:
  22. service_name:
  23. default: "gitlab"
  24. container_name:
  25. default: "gitlab"
  26. external_url:
  27. type: str
  28. description: External URL for GitLab (e.g., https://gitlab.example.com)
  29. default: 'https://gitlab.example.com'
  30. ssh_port:
  31. type: int
  32. description: SSH port for Git operations
  33. default: 2424
  34. ports:
  35. vars:
  36. ports_enabled:
  37. type: bool
  38. description: Expose HTTP/HTTPS ports (disabled if using Traefik)
  39. default: true
  40. ports_http:
  41. type: int
  42. description: HTTP port (disabled if using Traefik)
  43. default: 80
  44. ports_https:
  45. type: int
  46. description: HTTPS port (disabled if using Traefik)
  47. default: 443
  48. traefik:
  49. vars:
  50. traefik_host:
  51. default: gitlab.home.arpa
  52. registry:
  53. description: GitLab Container Registry configuration
  54. required: false
  55. toggle: registry_enabled
  56. vars:
  57. registry_enabled:
  58. type: bool
  59. description: Enable GitLab Container Registry
  60. default: false
  61. registry_external_url:
  62. type: str
  63. description: External URL for Container Registry
  64. default: 'https://registry.example.com'
  65. registry_hostname:
  66. type: str
  67. description: Hostname for Container Registry (when using Traefik)
  68. default: registry.example.com
  69. registry_port:
  70. type: int
  71. description: Internal port for Container Registry
  72. default: 5678