You must confirm all subdomains and domains are correct. i.e. the auth.domain.com is the FQDN for your Authentik UI.
.env File
If this is a fresh authentik install run the following commands to generate a password (in the directory of your compose file):
# You can also use openssl instead: `openssl rand -base64 36`
sudo apt-get install -y pwgen
# Because of a PostgreSQL limitation, only passwords up to 99 chars are supported
# See https://www.postgresql.org/message-id/09512C4F-8CB9-4021-B455-EF4C4F0D55A0@amazon.com
echo "PG_PASS=$(pwgen -s 40 1)" >> .env
echo "AUTHENTIK_SECRET_KEY=$(pwgen -s 50 1)" >> .env
# Skip if you don't want to enable error reporting
echo "AUTHENTIK_ERROR_REPORTING__ENABLED=true" >> .env
This will create the .env file and fill it with some passwords. In addition, you can add many other variables to the .env file. See here:
By default, authentik listens on port 9000 for HTTP and 9443 for HTTPS. To change this, you can set the following variables in .env:
After running the commands at the top of this page, additional lines will be added to your ENV for secret keys and passwords
Docker Compose File
Below is our tweaked version of the official Docker Compose template provided by Authentik.
We made several changes including giving a standardized name to all containers.
Warning - using a compose file that is outside of our guide means we are unable to guarantee a successful deployment for you.
Remember, once the system is up and running you need to access a specific link to set up the default 'akadmin' account.
To start the initial setup, navigate to https://<your server>/if/flow/initial-setup/. There you will be prompted to set a password for the akadmin user.
If you wish to use the default, you can find it here: