Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.
Invoicing and billing for freelancers and small businesses: invoices, quotes, recurring billing, expenses, payments through online gateways, and a client portal, with desktop and mobile apps that also work against a self-hosted server. Source-available under the Elastic License 2.0; the self-hosted code includes the hosted Pro and Enterprise features, and removing the branding needs a paid white-label license.
Runs on a VPS from $12/mo (Kamatera 4GB, 4 GB RAM) · prices checked Nov 2026
Fits home hardware (1,034 MB measured idle, RAM only): Raspberry Pi 4 (4 GB) (arm64 untested), Raspberry Pi 5 (8 GB) (arm64 untested), Repurposed laptop (8 GB), Intel N100 mini PC (16 GB), AMD Ryzen mini PC (32 GB).
Paid link — we earn a commission if you shop through it.
Run these commands on your server:
# Invoice Ninja — upstream's Debian compose stack (app + nginx + MySQL + Redis) from invoiceninja/dockerfiles, pinned, behind Caddy for HTTPS, per our Invoice Ninja deploy guide
# needs a domain pointed at this server and ports 80/443 open; nginx is rebound to 127.0.0.1
git clone --depth 1 -b debian https://github.com/invoiceninja/dockerfiles.git ~/invoiceninja
cd ~/invoiceninja/debian
DOMAIN=billing.example.com
ADMIN_EMAIL=you@example.com
DBPW=$(openssl rand -hex 16)
DBROOT=$(openssl rand -hex 16)
# replace the sample APP_KEY, admin password and DB passwords before the first start:
sed -i \
-e "s|^APP_URL=.*|APP_URL=https://$DOMAIN|" \
-e "s|^APP_KEY=.*|APP_KEY=base64:$(openssl rand -base64 32)|" \
-e "s|^APP_DEBUG=.*|APP_DEBUG=false|" \
-e "s|^REQUIRE_HTTPS=.*|REQUIRE_HTTPS=true|" \
-e "s|^IN_USER_EMAIL=.*|IN_USER_EMAIL=$ADMIN_EMAIL|" \
-e "s|^IN_PASSWORD=.*|IN_PASSWORD=$(openssl rand -hex 12)|" \
-e "s|^DB_PASSWORD=.*|DB_PASSWORD=$DBPW|" \
-e "s|^MYSQL_PASSWORD=.*|MYSQL_PASSWORD=$DBPW|" \
-e "s|^DB_ROOT_PASSWORD=.*|DB_ROOT_PASSWORD=$DBROOT|" \
-e "s|^MYSQL_ROOT_PASSWORD=.*|MYSQL_ROOT_PASSWORD=$DBROOT|" \
.env
printf 'COMPOSE_PROJECT_NAME=invoiceninja\nTAG=5.13.47\nDOMAIN=%s\n' "$DOMAIN" >> .env
chmod 600 .env
cat > docker-compose.override.yml <<'EOF'
services:
nginx:
ports: !override ["127.0.0.1:8080:80"]
mysql:
image: mysql:8.4
redis:
image: redis:7-alpine
caddy:
image: caddy:2
restart: unless-stopped
ports: ["80:80", "443:443"]
environment:
DOMAIN: ${DOMAIN}
volumes: ["./Caddyfile:/etc/caddy/Caddyfile:ro", "caddy_data:/data"]
depends_on: [nginx]
volumes:
caddy_data:
EOF
cat > Caddyfile <<'EOF'
{$DOMAIN} {
encode zstd gzip
reverse_proxy nginx:80
}
EOF
sudo docker compose pull
sudo docker compose up -d # → Invoice Ninja on http://127.0.0.1:8080 (server-local); Caddy serves https://DOMAIN
# log in at https://DOMAIN with the IN_USER_EMAIL / IN_PASSWORD from .env:
grep -E '^IN_(USER_EMAIL|PASSWORD)=' .envInvoice Ninja used 1034 MB of RAM at idle on GCP e2-standard-2 · Ubuntu 26.04 LTS · Docker 29.9.0 (first boot, measured Oct 2026). We list a minimum of 2048 MB.
The Invoice Ninja install snippet is marked verified on Ubuntu 26.04 (Oct 2026).