Skip to the content.

Running Metabase on AWS Lightsail

I have searched the internet for a simple (open source) analytics platform that can be integrated with many data sources including MongoDB in particular. Also important to me was the interactivity and embedded analytics capabilities of the tools l looked into. I found Metabase to tick all the boxes and their pricing and open source offering made this even more attractive.

Having played around with Docker before, I decided to test Metabase and look around using a local version. I managed to get this running in a matter of minutes. It quickly became clear after answering a few questions on the database l had connected that I needed a production version. To continue exploring without losing any of the work I had done I had 2 options as recommended in the install documentation, saving the data on mapped file storage or using a PostgreSQL database. I opted for the database option as it seemed simple enough.

Although the tutorial for deploying a new version of Metabase on Elastic Beanstalk is very extensive, I decided to go in a different direction.I opted to run Metabase on an AWS Lightsail Ubuntu instance, the reason for this was simply that AWS Lightsail has always been a lot less intimidating as compared to Amazon Elastic Compute Cloud (EC2) or the Metabase recommended Elastic Beanstalk. I have always found it easier to manage instances, networking as well as storage compared to EC2 or any other cloud compute providers.

In this article l go over the steps I followed to install Create the AWS Lightsail instance, installing Docker, PostgresQL and running Metabase connected to the postgres database. I will also include any hurdles that l faced during the install with the workarounds.

Prerequisites

This article assumes some knowledge of the different listed technologies below although not essentials.

Installation

To get this all working below are the step by step instructions l followed.

Alternatively, follow the steps below to install and configure each component separately.

Welcome Page

Finally this is the stage you get to enjoy your installation. One of the things l have loved about Metabase so far is the ease of use and the fact that to explore and really get hands on you do not need any hand holding.

At this point all you will need is to connect to your data source and Metabase provides a guided interface to get your first database source connected which is very easy.

Creating visualizations is also equally as easy but do not take my word for it, go ask your questions, learn about your data.