LeadZ

Your account could not be loaded.

Self-Hosting Guide — A to Z

Move From LeadZ Platform → Your Own Server

Complete guide to migrating from the hosted platform to AWS or Azure. Includes infrastructure code, deployment scripts, CI/CD pipelines, data migration, DNS cutover, and a full checklist.

✅ Full data ownership✅ AWS & Azure guides✅ Terraform / Bicep IaC✅ CI/CD pipelines✅ Zero-downtime cutover

Step 0 — Export Your Data First (Do This Now)

Before anything else — download a full JSON export of all your company data. This is the file you'll import into your self-hosted database.

Exports: Customers, Jobs, Invoices, Estimates, Leads, Technicians, Settings, Payments, Notes, and more.

What Changes When You Self-Host

ComponentHosted Platform (now)Self-Hosted (after)
AuthenticationPlatform auth serverYour own JWT backend
DatabasePlatform-managed DBPostgreSQL 15 on RDS/Azure DB
File StoragePlatform storageS3 / Azure Blob
API / FunctionsPlatform functions runtimeDeno server you control
Frontend SDK@base44/sdk npm packageSelf-hosted API client (drop-in)
EmailPlatform relayYour SendGrid account
Real-time (WebSocket)Platform WebSocketsYour Deno WebSocket server
Domainapp.platform.comcrm.yourdomain.com

AWS vs Azure — Cost & Feature Comparison

☁️Amazon AWS
Most Flexible

~$150-350/mo estimated

Services Used

  • ECS Fargate (containers)
  • RDS PostgreSQL Multi-AZ
  • ElastiCache Redis
  • S3 + CloudFront CDN
  • ALB Load Balancer
  • Secrets Manager
  • CloudWatch Logs

Pros

  • + Largest ecosystem
  • + Best Terraform support
  • + Mature CI/CD (CodePipeline)
  • + Global edge locations

Cons

  • - More complex setup
  • - IAM can be confusing
  • - Many services to manage
🔷Microsoft Azure
Easiest for Enterprises

~$130-300/mo estimated

Services Used

  • Container Apps (serverless)
  • PostgreSQL Flexible Server
  • Azure Cache for Redis
  • Blob Storage + CDN
  • Key Vault (secrets)
  • Log Analytics
  • ACR (container registry)

Pros

  • + Container Apps auto-scale to zero
  • + Bicep is simpler than Terraform
  • + Excellent AD/SSO integration
  • + Good Canadian data residency

Cons

  • - Less community resources
  • - Portal can be overwhelming
  • - Slightly higher DB costs

Migration Timeline

Week 1

Planning & Setup

Choose cloud provider, create account, install tools, get API keys

Week 2

Infrastructure

Run Terraform/Bicep, provision DB/Redis/Storage, apply schema

Week 3

App Deployment

Build & push Docker images, deploy to ECS/Container Apps, test

Week 4

Validate & Cutover

Staging test, import data, DNS cutover, monitor

# ── macOS (Homebrew) ──────────────────────────────────────
brew install terraform awscli azure-cli docker node git postgresql

# ── Ubuntu/Debian ─────────────────────────────────────────
# Docker
curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker $USER

# AWS CLI
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o awscliv2.zip
unzip awscliv2.zip && sudo ./aws/install

# Azure CLI
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash

# Terraform
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update && sudo apt install terraform

# Node.js 20 (for import script)
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
sudo apt install -y nodejs

# Verify versions
terraform --version   # >= 1.6
aws --version          # >= 2.0
az --version           # >= 2.55
docker --version       # >= 24.0
node --version         # >= 20.0

Need Hands-On Migration Help?

The LeadZ team offers white-glove cloud migrations: full infrastructure setup, data migration, testing, and DNS cutover — managed for you.

support@lead-z.ca

Lead-Z

Lead-Z CRM

app.lead-z.ca

Free
Instant access
Works offline
Push notifications
App-like feel

We Use Cookies

We use cookies to enhance your experience, analyze site traffic, and personalize content.