Docs / IT admins and developers

Install FaloodAi on your own server

Self-hosting step by step with Docker. Your server, your database, your data. Needs a yearly licence.

What you get

The same app as FaloodAi Cloud (CRM, sales, invoicing, inventory, purchasing, accounting, HR, projects, the AI assistant and agents) running on a server you control.

Self-hosting needs a yearly licence: $590 for Core, $1,790 for Growth, $4,190 for Business, custom for Enterprise. You also pay for your own server and database. To get a licence, or to have us install it for you (from $750), talk to us. Prices are on the pricing page.

You get FaloodAi as a ready-made Docker image, not as source code. When a new version is out, the app tells your admin, and your administrator deploys a reviewed release.

What you need

  • A Linux server with Docker 24 or newer and Docker Compose (2 vCPU and 4 GB of memory is enough for most teams). Any cloud works: AWS, Google Cloud, Azure, DigitalOcean, Hetzner, or a machine in your office.
  • A domain or subdomain for the app, for example erp.yourcompany.com, pointing at the server.
  • A Supabase project for the database and sign-in. The free tier of Supabase Cloud works, or you can run Supabase yourself.
  • Optional: a mailbox (SMTP) for notification emails, and an OpenAI key for the AI features.

1. Get the image

The public download link isn't published yet. Contact us and we'll send you access. The steps below use ghcr.io/YOUR-ORG/inuberry as the image name: replace it with the one we give you.

2. Create the database

  1. Create a Supabase project and wait until it's ready.
  2. Copy four values from Project Settings › API: the project URL, the project ref, the anon key and the service_role key.
  3. Copy the connection string from Project Settings › Database (use the direct connection, port 5432).

You don't create any tables yourself. FaloodAi sets up the database the first time it starts, and updates it with every new version.

3. Configure

On the server, make a folder (for example /opt/inuberry) and create two files in it. The first is .env with your values. Keep this file private: it holds keys that give full access to your data.

.env
# Which image and version to run
INUBERRY_IMAGE=ghcr.io/YOUR-ORG/inuberry
# Required: choose a reviewed release tag
INUBERRY_VERSION=

# Your address (used in emails and links)
SITE_URL=https://erp.yourcompany.com
PORT=3000

# Supabase: Project Settings › API, and Project Settings › Database › Connection string
SUPABASE_URL=https://<project-ref>.supabase.co
SUPABASE_PUBLISHABLE_KEY=<anon key>
SUPABASE_PROJECT_ID=<project-ref>
SUPABASE_SERVICE_ROLE_KEY=<service role key>
DATABASE_URL=postgresql://postgres:<password>@db.<project-ref>.supabase.co:5432/postgres

# Encrypts saved AI keys and mailbox passwords. Make it once, never change it:
#   openssl rand -base64 32
APP_ENCRYPTION_KEY=

# Release notifications only; deployments are managed by your administrator
UPDATE_FEED_URL=https://faloodai.com/api/public/releases

# Optional: a mailbox for notification emails
PLATFORM_SMTP_HOST=
PLATFORM_SMTP_PORT=587
PLATFORM_SMTP_USER=
PLATFORM_SMTP_PASS=
PLATFORM_SMTP_FROM=

# Optional: AI for every workspace that hasn't added its own key
OPENAI_API_KEY=

The second file: docker-compose.yml

This runs the app on a loopback port behind your HTTPS proxy. Set an explicit reviewed release tag in the environment file. Updates are deployed through server administration or CI.

docker-compose.yml
services:
  app:
    image: ${INUBERRY_IMAGE}:${INUBERRY_VERSION:?Set a reviewed release tag}
    env_file: .env
    ports:
      - "127.0.0.1:${PORT:-3000}:3000"
    labels:
      - inuberry.role=app
    restart: unless-stopped

4. Start it

Run this in the folder. The first start takes a minute while the database is set up.

terminal
docker compose up -d
docker compose logs -f app     # wait for "Listening on", then Ctrl+C
curl http://localhost:3000/api/public/version

5. Put it behind HTTPS

Browsers need HTTPS for sign-in. The simplest way is Caddy, which gets a certificate for you. Install it on the server and use this Caddyfile, then run systemctl reload caddy. A cloud load balancer, nginx or Traefik work too.

/etc/caddy/Caddyfile
erp.yourcompany.com {
  reverse_proxy localhost:3000
}

6. Set up sign-in in Supabase

  • Authentication › URL configuration: set Site URL to your address and add https://erp.yourcompany.com/** to the redirect URLs.
  • Authentication › SMTP: add a mailbox, so sign-up and password emails come from your domain.
  • Authentication › Email templates: paste the FaloodAi templates. Copy them out of the image with docker compose cp app:/app/deploy/email-templates ./email-templates; the README in that folder says which file goes where.
  • Optional, Authentication › Providers › Google: add a Google OAuth client so people can sign in with Google.
  • Optional, to let AI apps connect: Authentication › OAuth Server: turn it on, allow dynamic client registration, and set the authorization path to /oauth/consent.

7. Make yourself the admin

Open your address, click Start free, and sign up with your work email. Confirm the email, then run this on the server with that address. It makes your account the admin of this install, with the Platform console for plans, workspaces and updates.

terminal
docker compose exec app inuberry make-admin you@yourcompany.com

Backups

Everything lives in the Supabase database and its file storage. On Supabase Cloud, daily backups are included on paid plans; on the free tier, or when you run Supabase yourself, schedule a dump:

terminal
pg_dump "$DATABASE_URL" -Fc -f inuberry-$(date +%F).dump

If something goes wrong

  • docker compose logs app shows what the app is doing. Problems with the database or keys are reported there in plain words.
  • The app doesn't start: check every Supabase value in .env, and that DATABASE_URL uses port 5432.
  • Sign-up emails don't arrive: set up SMTP in Supabase (step 6).
  • Still stuck? Contact us with the log lines.

Something missing or unclear? Tell us.