template.yaml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. ---
  2. kind: compose
  3. metadata:
  4. icon:
  5. provider: selfh
  6. id: traefik
  7. name: Whoami
  8. description: |
  9. A **simple web application** that displays information about the HTTP request it receives.
  10. ## Use Cases
  11. - Testing reverse proxy configurations
  12. - Debugging web server setups
  13. - Verifying load balancer functionality
  14. - Quick HTTP endpoint testing
  15. ## Resources
  16. - **Project**: https://github.com/traefik/whoami
  17. - **Documentation**: https://traefik.io/docs/
  18. - **GitHub**: https://github.com/traefik/whoami
  19. version: 1.11.0
  20. author: Christian Lempa
  21. date: '2025-10-30'
  22. tags:
  23. - traefik
  24. - swarm
  25. schema: "1.2"
  26. spec:
  27. general:
  28. vars:
  29. service_name:
  30. default: whoami
  31. restart_policy:
  32. description: Container restart policy
  33. type: enum
  34. options:
  35. - unless-stopped
  36. - always
  37. - on-failure
  38. - 'no'
  39. default: unless-stopped
  40. required: true
  41. traefik:
  42. vars:
  43. traefik_host:
  44. default: whoami
  45. traefik_network:
  46. description: Traefik network name
  47. type: str
  48. default: traefik
  49. required: true
  50. traefik_domain:
  51. description: Base domain (e.g., example.com)
  52. type: str
  53. default: home.arpa
  54. required: true
  55. traefik_tls:
  56. vars:
  57. traefik_tls_enabled:
  58. description: Enable HTTPS/TLS
  59. type: bool
  60. default: true
  61. traefik_tls_certresolver:
  62. description: Traefik certificate resolver name
  63. type: str
  64. default: cloudflare
  65. required: true
  66. resources:
  67. vars:
  68. resources_enabled:
  69. description: Enable resource limits
  70. type: bool
  71. default: false
  72. swarm:
  73. vars:
  74. swarm_enabled:
  75. description: Enable Docker Swarm mode
  76. type: bool
  77. default: false
  78. swarm_placement_mode:
  79. description: Swarm placement mode
  80. type: enum
  81. options:
  82. - replicated
  83. - global
  84. default: replicated
  85. required: true
  86. swarm_replicas:
  87. description: Number of replicas
  88. type: int
  89. default: 1
  90. needs:
  91. - swarm_placement_mode=replicated
  92. required: true
  93. swarm_placement_host:
  94. description: Target hostname for placement constraint
  95. type: str
  96. default: ''
  97. needs:
  98. - swarm_placement_mode=replicated
  99. extra: Constrains service to run on specific node by hostname