template.yaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. ---
  2. kind: compose
  3. metadata:
  4. icon:
  5. provider: selfh
  6. id: nginx
  7. name: Nginx
  8. description: 'Nginx is a high-performance web server, reverse proxy, and load balancer known for its stability, rich feature
  9. set, simple configuration, and low resource
  10. consumption. It is widely used to serve static content, handle HTTP requests, and distribute traffic across multiple servers.
  11. ## Prerequisites
  12. * **Project:** https://nginx.org/
  13. * **Documentation:** https://nginx.org/en/docs/
  14. * **GitHub:** https://github.com/nginx/nginx'
  15. version: 1.28.2-alpine
  16. author: Christian Lempa
  17. date: '2026-02-05'
  18. tags:
  19. - traefik
  20. - swarm
  21. draft: true
  22. schema: '1.2'
  23. spec:
  24. general:
  25. vars:
  26. service_name:
  27. default: nginx
  28. restart_policy:
  29. type: enum
  30. options:
  31. - unless-stopped
  32. - always
  33. - on-failure
  34. - 'no'
  35. default: unless-stopped
  36. container_name:
  37. default: nginx
  38. container_timezone:
  39. default: UTC
  40. ports:
  41. vars:
  42. ports_http:
  43. description: HTTP port for nginx service
  44. type: int
  45. default: 8080
  46. ports_https:
  47. description: HTTPS port for nginx service
  48. type: int
  49. default: 8443
  50. traefik:
  51. title: Traefik
  52. toggle: traefik_enabled
  53. description: Configure Traefik reverse proxy integration
  54. vars:
  55. traefik_enabled:
  56. type: bool
  57. default: false
  58. traefik_network:
  59. default: traefik
  60. traefik_host:
  61. default: nginx
  62. traefik_domain:
  63. default: home.arpa
  64. traefik_entrypoint:
  65. default: web
  66. default: websecure
  67. type: bool
  68. default: true
  69. default: cloudflare
  70. network:
  71. vars:
  72. network_mode:
  73. type: enum
  74. options:
  75. - bridge
  76. - host
  77. - macvlan
  78. default: bridge
  79. network_name:
  80. default: bridge
  81. swarm:
  82. toggle: swarm_enabled
  83. vars:
  84. swarm_enabled:
  85. type: bool
  86. default: false
  87. swarm_replicas:
  88. description: Number of replicas for Swarm mode
  89. type: int
  90. default: 1
  91. swarm_placement_host:
  92. type: str
  93. default: ''
  94. description: The placement host
  95. swarm_placement_mode:
  96. type: str
  97. default: replicated
  98. description: The placement mode