Install Docker
Update the repo to get latest versions
sudo apt update
Install the latest version
sudo apt install docker.io
Set Docker to start on startup
sudo systemctl enable --now docker
Give your user permissions to docker, replacing user
with your username
sudo usermod -aG docker user
Test it has installed correctly by getting the docker version
docker --version
Docker Compose
I also install docker-compose as some dockers need you to compose from a yml file. This downloads v2.16.0, just change this if the version updates to a later version
sudo curl -L "https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Give permissions to this
sudo chmod +x /usr/local/bin/docker-compose
Test it has installed correctly by getting the docker-compose version
docker-compose --version
Install Authelia
Clone the repo
git clone https://github.com/authelia/authelia.git
Change directory to the Authelia local setup path
cd cd authelia/examples/compose/local
Run the setup.sh file
sudo ./setup.sh
On the domain prompt, enter your domain name
What root domain would you like to protect? (default/no selection is example.com): example.com
Enter your username you want to use
Enter your username for Authelia: user
Enter your name you want to display with that user
Enter your display name for Authelia (eg. John Doe): Authelia User
Enter your password you want to use with that user
Enter a password for user: *********
First run
Run to https://serverip and you will get the login page. Default username is admin and passowrd is admin.