template.yaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. toggle: traefik_enabled
  52. vars:
  53. traefik_enabled:
  54. type: bool
  55. default: false
  56. traefik_network:
  57. default: traefik
  58. traefik_host:
  59. default: nginx
  60. traefik_domain:
  61. default: home.arpa
  62. traefik_entrypoint:
  63. default: web
  64. traefik_tls_entrypoint:
  65. default: websecure
  66. traefik_tls_enabled:
  67. type: bool
  68. default: true
  69. traefik_tls_certresolver:
  70. default: cloudflare
  71. network:
  72. vars:
  73. network_mode:
  74. type: enum
  75. options:
  76. - bridge
  77. - host
  78. - macvlan
  79. default: bridge
  80. network_name:
  81. default: bridge
  82. swarm:
  83. toggle: swarm_enabled
  84. vars:
  85. swarm_enabled:
  86. type: bool
  87. default: false
  88. swarm_replicas:
  89. description: Number of replicas for Swarm mode
  90. type: int
  91. default: 1
  92. swarm_placement_host:
  93. type: str
  94. default: ''
  95. description: The placement host
  96. swarm_placement_mode:
  97. type: str
  98. default: replicated
  99. description: The placement mode