Requirements
- Install Docker on your machine;
- Make sure Docker Compose is installed and available (it should be the case if you have chosen to install Docker via Docker Desktop); and
- Make sure Git is installed on your machine.
Run the app
To start using Lago, run the following commands in a shell:Signing up
It’s mandatory to create your organization by signing up to Lago. This organization is the core object of your biller as it’s used to invoice your customers.- Write down your
organization name; - Use the main billing
emailof your company; and - Define the admin
passwordfor this email.
Find your API Key
Your API Key can be found directly in the UI:- Access the Developer section from the sidebar;
- The first tab of this section is related to your API keys; and
- Click the Copy button to copy it to clipboard.
Configuration
Version
Docker images are always updated to the last stable version in thedocker-compose.yml file. You can use a different tag if needed by checking the
releases list.
- lago-api : https://hub.docker.com/repository/docker/getlago/api
- lago-front : https://hub.docker.com/repository/docker/getlago/front
Environment variables
Lago uses the following environment variables to configure the components of the application. You can override them to customise your setup.Components
Lago uses the following containers:
You can also use your own database or Redis server. To do so, remove the
db
and redis configurations from the docker-compose.yml file and update the
environment variables accordingly.
SSL Support
Lago Front application can be configured to support SSL certificates. You have two options to achieve this:- by using a self-signed certificate
- by using a signed certificate generated by Let’s Encrypt
Self Signed Certificate
- Run the script to generate the certificates
- Take a look at the
docker-compose.ymlfile and uncomment the part related to the Self-Signed certificate
- You can now start the front application with a self signed SSL certificate support
Let’s Encrypt Certificate
- Edit the file
extra/init-letsencrypt.sh- You must replace
lago.examplewith your domain name - You must enter a valid email address
- You must replace
- Edit the file
extra/nginx-letsencrypt.conf- You must replace
lago.examplewith your domain name
- You must replace
- Run the script
- Take a look at the
docker-compose.ymlfile and uncomment all the parts related to the Let’s Encrypt’s support
- You can now start the front application with the signed certificate support
Storage
By default, Lago uses the internal storage of the container. You can customize it by defining different environment variables. We currently support :- AWS S3
- AWS S3 Compatibles Endpoints
- Google Cloud Service Cloud Storage
AWS S3
You have to set these variables to use AWS S3.AWS S3 Compatible Endpoints
You have to set these variables to use AWS S3 Compatible Endpoints.Google Cloud Service Cloud Storage
You have to set those variables to use GCS Cloud Storage.
In the
docker-compose.yml file, you must uncomment the lines and pass the
correct GCS credentials json file.