Levelrail
Skip to content

Self-host Invoice Ninja with Docker ​

Self-hosted invoicing, quotes, and payments for freelancers and small businesses.

This page describes the Levelrail template for Invoice Ninja (Finance). It deploys the services below as one Docker Compose app on your own server.

Project site: https://invoiceninja.github.io.

Recommended memory: about 512 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
dbmariadb:11none
invoiceninja_db_data -> /var/lib/mysql
invoiceninjainvoiceninja/invoiceninja:580
invoiceninja_data -> /var/www/app/storage
redisredis:7.4-alpinenone
invoiceninja_redis_data -> /data

Environment variables ​

ServiceVariableValue
dbMYSQL_DATABASEPreset in the template
dbMYSQL_PASSWORDGenerated at deploy
dbMYSQL_ROOT_PASSWORDGenerated at deploy
dbMYSQL_USERPreset in the template
invoiceninjaAPP_KEYGenerated at deploy
invoiceninjaAPP_URLPreset in the template
invoiceninjaDB_DATABASEPreset in the template
invoiceninjaDB_HOSTPreset in the template
invoiceninjaDB_PASSWORDGenerated at deploy
invoiceninjaDB_USERNAMEPreset in the template
invoiceninjaREDIS_HOSTPreset in the template

Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.

Deploy Invoice Ninja with Levelrail ​

In the dashboard, open Apps, choose New app, then Browse templates, and select Invoice Ninja. Review the Compose body and deploy.

With the CLI:

levelrail-cli templates deploy invoice-ninja --name my-invoice-ninja

See Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.

More Finance templates ​

All templates are listed in the self-host gallery.

Released under the Apache 2.0 License.