
This tutorial explains how to install Firefly III on Ubuntu 20.04. This tutorial will use Docker, docker-compose and Nginx to secure the setup.
Firefly III is a self-hosted personal finance manager that allows you to keep track of all your funds and assets.
Before you begin, you should have:
You should also have:
Install Git using apt.
Ensure that any apt versions of Certbot are uninstalled. It is okay if apt reports that none of these packages was installed.
Ensure that your version of snapd is up to date.
Install Certbot using snap.
Run Certbot. You will need to follow the prompts to enter your domain name and redirect all traffic to HTTPS.
Take note of your certificate and private key paths when provided. It may be different depending on the domain used.
If you used a different SSL provider, please ensure they are on your server and know their full path. You may put them in the /etc/nginx/ directory if you wish.
Remove any older versions of Docker and the Docker engine.
Install Docker using snap.
Create a directory called firefly in your home directory and enter it.
Download Firefly III's .env file from GitHub.
Open the .env file in your text editor.
You will need to edit some of the values in this file to set up and customize your installation. You should change the values listed below.
**.If you spot any other settings you wish to change, please do so.
Save and exit the text editor by using Control + X, then Y, followed by Enter.
Create and open a new docker-compose.yml file.
Add the following lines to the file.
Exit the file using Control + X, then press Y, followed by Enter.
Run Firefly III by using docker-compose in detached mode. This may take a few seconds.
Check that Firefly III is running by using docker. The status should be Up.
You have now successfully installed and configured Firefly III and have obtained a signed SSL certificate.
You can now use your SSL certificate and Nginx to secure your Firefly III installation. Nginx will provide HTTPS support by using your SSL certificate and redirecting all traffic through port 443.
Remove the Nginx default configuration file. If you are using this file, then keep it.
Create and open a new configuration file in Nginx's conf.d directory.
Paste the following into the file and replace example.com with your chosen domain name. Ensure that the ssl_certificate and ssl_certificate_key lines point to your SSL certificate.
Exit your text editor and save changes by pressing Control + X, then Y, followed by Enter.
Test the configuration file. If the test is successful, you will see the syntax is ok, and the test is successful messages.
Reload Nginx to apply your changes.
You should now navigate to your Firefly III installation and create an account.
Once logged in, you can set up your first savings account by following the steps on the welcome screen.
You have successfully installed Firefly III and secured it using an SSL certificate and an Nginx reverse proxy.
0 Comments
Be the first to comment and share your perspective with the community.