template.yaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. ---
  2. kind: compose
  3. metadata:
  4. name: Authentik
  5. description: >
  6. Integrate Authentik Single Sign-On (SSO) for secure and streamlined user authentication.
  7. Authentik is an open-source identity provider that supports various authentication protocols.
  8. This configuration enables OAuth-based SSO, allowing users to log in using their Authentik
  9. credentials, enhancing security and user experience.
  10. Project: https://goauthentik.io/
  11. Documentation: https://goauthentik.io/docs/
  12. GitHub: https://github.com/goauthentik/authentik
  13. version: 2025.6.3
  14. author: Christian Lempa
  15. date: '2025-09-28'
  16. tags:
  17. - authentication
  18. next_steps: |
  19. 1. Start Authentik:
  20. docker compose up -d
  21. 2. Access the web interface:
  22. {% if traefik_enabled -%}
  23. - Via Traefik: https://{{ traefik_host }}
  24. {% if ports_enabled %}- Direct access: http://localhost:{{ ports_http }}{% endif %}
  25. {%- else -%}
  26. - Open http://localhost:{{ ports_http }} in your browser
  27. {%- endif %}
  28. 3. Initial setup:
  29. - Follow the setup wizard to create your admin account
  30. - Configure authentication flows and providers
  31. - Set up user directory (LDAP, Active Directory, or local)
  32. 4. Configure your first application:
  33. - Navigate to Applications → Create
  34. - Choose authentication provider (OAuth2, SAML, LDAP, etc.)
  35. - Configure redirect URIs and client credentials
  36. - Assign users or groups to the application
  37. 5. Important configuration:
  38. - Secret Key: {{ authentik_secret_key }}
  39. - Database Password: {{ database_password }}
  40. - Store these credentials securely!
  41. 6. Security recommendations:
  42. - Enable two-factor authentication for admin accounts
  43. - Configure backup flows and recovery tokens
  44. - Set up email notifications for security events
  45. - Review and customize authentication policies
  46. - Regularly backup the database and media files
  47. For more information, visit: https://goauthentik.io/docs/
  48. spec:
  49. general:
  50. vars:
  51. service_name:
  52. default: authentik
  53. container_name:
  54. default: authentik-server
  55. database:
  56. required: true
  57. vars:
  58. database_name:
  59. default: authentik
  60. database_user:
  61. default: authentik
  62. ports:
  63. vars:
  64. ports_http:
  65. description: Host port for HTTP
  66. type: int
  67. default: 8000
  68. ports_https:
  69. description: Host port for HTTPS
  70. type: int
  71. default: 8443
  72. traefik:
  73. vars:
  74. traefik_host:
  75. default: authentik.home.arpa
  76. authentik:
  77. description: Configure Authentik application settings
  78. required: true
  79. vars:
  80. authentik_error_reporting:
  81. description: Enable error reporting to Authentik developers
  82. type: bool
  83. default: false
  84. authentik_secret_key:
  85. description: Secret Key
  86. extra: Used for cookie signing and unique user IDs
  87. type: str
  88. sensitive: true
  89. autogenerated: true