template.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. ---
  2. kind: compose
  3. schema: "1.1"
  4. metadata:
  5. name: Whoami
  6. description: |
  7. A **simple web application** that displays information about the HTTP request it receives.
  8. ## Use Cases
  9. - Testing reverse proxy configurations
  10. - Debugging web server setups
  11. - Verifying load balancer functionality
  12. - Quick HTTP endpoint testing
  13. ## Resources
  14. - **Project**: https://github.com/traefik/whoami
  15. - **Documentation**: https://traefik.io/docs/
  16. - **GitHub**: https://github.com/traefik/whoami
  17. next_steps: |
  18. ## Post-Installation Steps
  19. 1. **Start the service**:
  20. ```bash
  21. docker compose up -d
  22. ```
  23. 2. **Verify the service is running**:
  24. ```bash
  25. docker compose ps
  26. ```
  27. 3. **Test the endpoint**:
  28. - Visit the configured host in your browser
  29. - Or use curl: `curl http://{{ traefik_host }}`
  30. 4. **Check Traefik dashboard** (if enabled):
  31. - Verify the route is registered correctly
  32. - Check middleware configuration
  33. version: 1.11.0
  34. author: Christian Lempa
  35. date: '2025-10-30'
  36. tags:
  37. - traefik
  38. - swarm
  39. draft: false
  40. spec:
  41. general:
  42. vars:
  43. service_name:
  44. default: whoami
  45. container_name:
  46. default: whoami
  47. container_hostname:
  48. default: whoami
  49. traefik:
  50. required: true
  51. needs: []
  52. vars:
  53. traefik_host:
  54. default: whoami.localhost
  55. traefik_tls:
  56. needs: []
  57. swarm:
  58. needs: []