template.yaml 2.0 KB

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