template.yaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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.1-alpine
  16. author: Christian Lempa
  17. date: '2025-12-24'
  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. vars:
  52. traefik_enabled:
  53. type: bool
  54. default: false
  55. traefik_network:
  56. default: traefik
  57. traefik_host:
  58. default: nginx
  59. traefik_domain:
  60. default: home.arpa
  61. traefik_entrypoint:
  62. default: web
  63. traefik_tls_entrypoint:
  64. default: websecure
  65. traefik_tls_enabled:
  66. type: bool
  67. default: true
  68. traefik_tls_certresolver:
  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. vars:
  83. swarm_enabled:
  84. type: bool
  85. default: false
  86. swarm_replicas:
  87. description: Number of replicas for Swarm mode
  88. type: int
  89. default: 1
  90. swarm_placement_host:
  91. type: str
  92. default: ''
  93. description: The placement host
  94. swarm_placement_mode:
  95. type: str
  96. default: replicated
  97. description: The placement mode