Documentation menu

Deploy AdonisJS on Light Cloud - built and run as a Node.js container on port 3333, with HOST and PORT wired from the environment.

Deploy AdonisJS

AdonisJS is detected from your package.json and runs as a Node.js container on port 3333. The generated image runs your build script and starts the compiled server from build/ on Node 22.

Serve it#

Adonis reads HOST and PORT from the environment. PORT is set for you; set HOST in the app's environment variables:

HOST=0.0.0.0
APP_KEY=<generate one>
NODE_ENV=production

APP_KEY (from node ace generate:key) is required in production.

Database#

Set DATABASE_URL, or Lucid's discrete DB_* variables, from the Credentials tab. Migrations run where the database is reachable:

node ace migration:run --force

Scaling#

Defaults fit a typical API - concurrency 80, scale to zero when idle.