template.yaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. - traefik
  18. - authentik
  19. next_steps: |
  20. 1. Start Authentik:
  21. docker compose up -d
  22. 2. Access the web interface:
  23. {% if traefik_enabled -%}
  24. - Via Traefik: https://{{ traefik_host }}
  25. {% if ports_enabled %}- Direct access: http://localhost:{{ ports_http }}{% endif %}
  26. {%- else -%}
  27. - Open http://localhost:{{ ports_http }} in your browser
  28. {%- endif %}
  29. 3. Initial setup:
  30. - Follow the setup wizard to create your admin account
  31. - Configure authentication flows and providers
  32. - Set up user directory (LDAP, Active Directory, or local)
  33. 4. Configure your first application:
  34. - Navigate to Applications → Create
  35. - Choose authentication provider (OAuth2, SAML, LDAP, etc.)
  36. - Configure redirect URIs and client credentials
  37. - Assign users or groups to the application
  38. 5. Important configuration:
  39. - Secret Key: {{ authentik_secret_key }}
  40. - Database Password: {{ database_password }}
  41. - Store these credentials securely!
  42. 6. Security recommendations:
  43. - Enable two-factor authentication for admin accounts
  44. - Configure backup flows and recovery tokens
  45. - Set up email notifications for security events
  46. - Review and customize authentication policies
  47. - Regularly backup the database and media files
  48. For more information, visit: https://goauthentik.io/docs/
  49. spec:
  50. general:
  51. vars:
  52. service_name:
  53. default: authentik
  54. container_name:
  55. default: authentik-server
  56. database:
  57. required: true
  58. vars:
  59. database_name:
  60. default: authentik
  61. database_user:
  62. default: authentik
  63. ports:
  64. vars:
  65. ports_http:
  66. description: Host port for HTTP
  67. type: int
  68. default: 8000
  69. ports_https:
  70. description: Host port for HTTPS
  71. type: int
  72. default: 8443
  73. traefik:
  74. vars:
  75. traefik_host:
  76. default: authentik.home.arpa
  77. authentik:
  78. description: Configure Authentik application settings
  79. required: true
  80. vars:
  81. authentik_error_reporting:
  82. description: Enable error reporting to Authentik developers
  83. type: bool
  84. default: false
  85. authentik_secret_key:
  86. description: Secret Key
  87. extra: Used for cookie signing and unique user IDs
  88. type: str
  89. sensitive: true
  90. autogenerated: true