Spent four hours trying to install Authentik. First I ran into https://github.com/goauthentik/authentik/issues/8127
Then I ran into an issue in portainer:
If a Stack (docker compose file) defines an `environment:` for a container, the also defined environment variables do NOT get populated into the container. This then broke Authentik's email configuration.

Request has been Denied. Flow does not apply to current user. What am I missing!? · Issue #8127 · goauthentik/authentik
Describe your question/ Simply set up Authentik in portainer with a stack. Relevant infos Debian 12, Portainer BE 2.19.4, Docker-ce 5:24.0.7, Docker Compose 2.21.0, Authentik 2023.10.6 Screenshots ...



