template.yaml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. ---
  2. kind: compose
  3. metadata:
  4. icon:
  5. provider: selfh
  6. id: nginx
  7. name: Nginx
  8. description: |-
  9. Nginx is a high-performance web server, reverse proxy, and load balancer known for its stability, rich feature 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.0-alpine
  16. author: Christian Lempa
  17. date: '2023-10-01'
  18. tags:
  19. - traefik
  20. - swarm
  21. draft: true
  22. spec:
  23. general:
  24. vars:
  25. service_name:
  26. default: "nginx"
  27. restart_policy:
  28. type: enum
  29. config:
  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. config:
  71. options: ["bridge", "host", "macvlan"]
  72. default: "bridge"
  73. network_name:
  74. default: "bridge"
  75. swarm:
  76. vars:
  77. swarm_enabled:
  78. type: bool
  79. default: false
  80. swarm_replicas:
  81. description: Number of replicas for Swarm mode
  82. type: int
  83. default: 1