Rapha-Borges / home-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Home Server

A quick way to setup my home server.

Software Stack

Truenas Scale

We will be using Truenas Scale as the base OS for the server. It is a Linux based OS which will allow us to use Docker. So you must Download and install Truenas Scale from the official website.

Docker

Our entire environment will be running on Docker. So we need to install Docker on Truenas Scale. The following command will install Docker, but it is recommended to check the official documentation for the latest installation instructions.

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh ./get-docker.sh --dry-run

Unbound

Unbound is a validating, recursive, and caching DNS resolver. It is designed to be fast and lean and incorporates modern features based on open standards. We will be using Unbound as our DNS resolver.

Check this other repository to know more about Unbound and how to install it: Unbound

Homepage

Homepage is a web-based, self-hosted dashboard, that allows you to monitor your server. It's free, open-source, and fully customizable. So you can customize it to your needs or use my configuration.

As we are using Docker, we can use the docker compose up command to start the Homepage service. But first, we need to setup the .env file with the environment variables.

cd homepage
cp .env.example .env
vim .env
docker-compose up -d

Servers Apllications

Now we have all the base services running, we can start to install the applications that we want to use. The first step, if you will use the same applications as me, is to configure the .env file with the environment variables.

cd applications
cp .env.example .env
vim .env

After that, we can use the docker compose up command to start the services.

docker-compose up -d

Digestabot

To ensure the security of our server, we will use Digestabot to keep our images always updated. It is a GitHub Action that checks for outdated Docker images and sends a pull request to update them.

References

About