template.yaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. type: bool
  67. network:
  68. vars:
  69. network_mode:
  70. type: enum
  71. options:
  72. - bridge
  73. - host
  74. - macvlan
  75. default: bridge
  76. network_name:
  77. default: bridge
  78. swarm:
  79. toggle: swarm_enabled
  80. vars:
  81. swarm_enabled:
  82. type: bool
  83. default: false
  84. swarm_replicas:
  85. description: Number of replicas for Swarm mode
  86. type: int
  87. default: 1
  88. swarm_placement_host:
  89. type: str
  90. default: ''
  91. description: The placement host
  92. swarm_placement_mode:
  93. type: str
  94. default: replicated
  95. description: The placement mode