Deployment guide

Apache Fineract

Overview

Apache Fineract is an open source core banking platform for financial inclusion. It provides a REST API for managing clients, accounts, loans, savings and the general ledger, and it is the engine behind the Mifos community of microfinance applications.

The SecureAnyCloud image installs Apache Fineract 1.10.1 as a Spring Boot application (fineract-provider.jar) on OpenJDK 17. It serves the REST API and Swagger UI over HTTPS on 127.0.0.1:8443, stores data in MariaDB on a dedicated Azure data disk, and sits behind an nginx reverse proxy on TCP 80. A unique administrator password is generated on the first boot of every VM.

What you get:

  • Apache Fineract 1.10.1 provider (fineract-provider.jar) on OpenJDK 17
  • The Fineract REST API and the built-in Swagger UI API console
  • MariaDB holding the fineract_tenants and fineract_default schemas, populated by Fineract's Liquibase migrations
  • A dedicated Azure data disk at /var/lib/fineract holding the MariaDB datadir, separate from the OS disk and re-provisioned with every VM
  • nginx reverse proxy on :80 to the Fineract provider, plus an unauthenticated /health endpoint
  • Per-VM mifos admin password generated at first boot, in a root-only file
  • mariadb.service, fineract.service and nginx.service as systemd units, enabled and active
  • 24/7 SecureAnyCloud support

Prerequisites

You need an active Azure subscription, an SSH key pair, and a VNet plus subnet in the target region. Standard_B4ms (4 vCPU / 16 GiB RAM) is a good starting point, because the Spring Boot JVM, MariaDB and the Liquibase migrations run together and use a lot of memory.

In the NSG, allow inbound 22/tcp from your management network and 80/tcp from the API clients and operators who use the gateway. For public exposure, front port 80 with TLS (see Enabling HTTPS).

Step 1 - Deploy from the Azure Marketplace

Sign in to the Azure Portal, select Create a resource, and search the Marketplace for Apache Fineract by SecureAnyCloud. Select Create.

On the Basics tab, pick your subscription, resource group, region and size. Under Administrator account, choose SSH public key and paste your key. Under Inbound port rules, allow SSH (22) and HTTP (80).

Review the dedicated data disk on the Disks tab. Then select Review + create and Create.

Step 2 - Deploy from the Azure CLI

# Accept the Marketplace terms once per subscription (required before the first CLI deploy)
az vm image terms accept --urn sac1647283583153:apache-fineract-ubuntu-24-04:default:latest
az vm create \
  --resource-group <your-rg> \
  --name fineract \
  --image sac1647283583153:apache-fineract-ubuntu-24-04:default:latest \
  --size Standard_B4ms \
  --admin-username azureuser \
  --ssh-key-values ~/.ssh/id_ed25519.pub \
  --vnet-name <your-vnet> --subnet <your-subnet> \
  --public-ip-sku Standard
az vm open-port --resource-group <your-rg> --name fineract --port 80 --priority 1010

First boot takes a few minutes. On first boot, the VM finishes its per-VM setup in the background by generating its own credentials and starting the services. If you connect as soon as the VM shows as running, wait for that setup to finish before you continue. Run sudo cloud-init status --wait on the VM.

The command prints status: done when the VM is ready. The credentials and services described below are present only after that.

Step 3 - Connect to your VM

ssh azureuser@<vm-public-ip>

Step 4 - Confirm the services are running

systemctl is-active mariadb.service fineract.service nginx.service

All three services report active.

Step 5 - Confirm the gateway answers

curl -s -o /dev/null -w 'health -> HTTP %{http_code}\n' http://127.0.0.1/health
curl -s -o /dev/null -w 'swagger ui -> HTTP %{http_code}\n' http://127.0.0.1/fineract-provider/swagger-ui/index.html

The unauthenticated /health endpoint returns HTTP 200, and the nginx reverse proxy fronts the Fineract provider so the Swagger UI returns HTTP 200.

Step 6 - Retrieve your admin password

The administrator password is generated uniquely on the first boot of your VM and written to a root-only file:

sudo grep -E '^FINERACT_' /root/fineract-credentials.txt

FINERACT_ADMIN_USER is mifos, FINERACT_TENANT is default, and FINERACT_ADMIN_PASSWORD is the password.

Step 7 - Verify the REST API authentication

Fineract uses HTTP Basic authentication and a Fineract-Platform-TenantId header. The following command reads the per-VM password and shows that a wrong password is rejected with HTTP 401, while the real one returns the office list as JSON. The password is sensitive, so the command reads it into a shell variable instead of printing it:

sudo grep '^FINERACT_ADMIN_PASSWORD=' /root/fineract-credentials.txt | cut -d= -f2- > /tmp/pw echo "wrong password -> HTTP $(curl -s -k -o /dev/null -w '%{http_code}' -u mifos:wrong -H 'Fineract-Platform-TenantId: default' https://127.0.0.1:8443/fineract-provider/api/v1/offices)"

The wrong password returns HTTP 401. To make an authenticated call with the real per-VM password, take it from the root-only credentials file. For example, to list the offices in the default tenant:

sudo curl -k -u mifos:<password> -H 'Fineract-Platform-TenantId: default' https://127.0.0.1:8443/fineract-provider/api/v1/offices

The response is a JSON array describing the Head Office and any branches you have created.

Step 8 - Explore the Swagger UI

Open http://<vm-public-ip>/fineract-provider/swagger-ui/index.html in a browser. The Swagger UI is the interactive API console for every Fineract endpoint, grouped by resource.

Select Authorize and enter your mifos credentials and the default tenant id. Then expand any resource to try requests directly from the browser.

Step 9 - Browse clients and data

Expand the clients resource group to list and create clients, or the datatables group to inspect the configurable data tables that extend the core banking entities.

The users resource manages application users and their roles and permissions.

Confirm the Fineract version

ls /opt/fineract/fineract-provider.jar && echo "Apache Fineract 1.10.1 deployed"

Enabling HTTPS

The Fineract provider already serves HTTPS internally on :8443 with a self-signed certificate, and nginx fronts it on :80. For production, terminate TLS at nginx with a real domain that points at the VM's public IP. Install certbot and request a certificate, replacing the example domain with yours:

sudo apt-get update && sudo apt-get install -y certbot python3-certbot-nginx
sudo certbot --nginx -d your-domain.example.com

Backup and maintenance

All Fineract data, including the tenant registry and every tenant's banking records, lives in MariaDB on the dedicated data disk at /var/lib/fineract. Snapshot that disk in Azure to back up your data. Keep the OS patched with sudo apt update && sudo apt upgrade. To restart the platform, run sudo systemctl restart mariadb fineract nginx.

Support

This image is backed by 24/7 SecureAnyCloud support. Contact us by email and chat for help with tenant setup, client and loan configuration, scaling, TLS and backups.

All product and company names are trademarks or registered trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.

Deploy on Azure

Launch Apache Fineract on Ubuntu 24.04 LTS on Azure with 24/7 support from SecureAnyCloud.

View this image

Need Help?

Our support team is available 24/7.

sales@secureanycloud.com

Deploy on Azure