Skip to content
agents start at /llms.txtthis page as markdown /docs/manifest.md
smallrun

Manifest

The app manifest, field by field. A deploy with no manifest works for one HTTP port and no database.

The manifest is the file smallrun.yaml in the app's folder. It describes one app. smallrun init generates it.

When it is needed

A deploy with no manifest works for the common case: one HTTP port, detected from the build, and no database. Write a manifest when the app needs a database, a fixed port, or its own build or start command. There is no volume field: every file the app writes is kept.

Example

yaml
# smallrun.yaml
name: leave
http:
  port: 8080
health:
  path: /healthz
runtime: php@8.3                      # optional; detected from the source
build: composer install --no-dev      # optional override
start: php artisan serve              # optional override of the web process
workers:
  mailer: php artisan queue:work
database: postgres
env:
  APP_URL: ${app.url}
  DB_HOST: ${database.host}
  DB_PASSWORD: ${database.password}
  MAIL_KEY: ${secrets.MAIL_KEY}
sleep:
  after_idle: 30m

Fields

Field Meaning
name App name. The app is served at https://<name>.smallrun.org. Optional; without it, the folder's name
http.port The one HTTP port the app listens on. Optional: without it, SmallRun sets PORT=8080 and finds the port the app opens
health.path Path of the health check
runtime Language line, for example php@8.3, node@22, dotnet@9. Optional; detected from the source. The platform keeps the patch version current
build Build command. Optional; overrides detection
start Start command of the web process. Optional; overrides detection
workers Background processes by name, for example a queue worker. Optional; added to the detected ones
env Environment variables: literal values, or references to ${app.url}, ${database.*} and ${secrets.<NAME>}
database postgres or mysql. Optional. A version can be pinned: postgres@17
sleep.after_idle Idle time before the app sleeps

The JSON Schema is at /manifest.schema.json.

Environment

Reference Value
${app.url} The app's public URL
${database.url}, ${database.host}, ${database.port}, ${database.name}, ${database.user}, ${database.password} The app's own database, created by the platform
${secrets.<NAME>} A value set with smallrun secrets. A secret that is not set is empty, and the deploy log warns
  • Never write a password as a literal: the manifest is part of the source. Use a reference.
  • A .env file in the source is deployed with it, and the app reads it as usual. To keep it out, list it in .smallrunignore.
  • DATABASE_URL and PORT are always set.

Rules

  • One app has one HTTP port. There are no TCP or UDP endpoints.
  • One app can run several processes in its one microVM: the web process, workers, and the runtime's own (nginx and PHP-FPM for PHP).
  • Scheduled tasks (cron) are not run. A detected schedule does not stop the deploy; the output warns with schedule_not_supported.
  • One app has at most one database. A manifest that asks for two is refused.
  • build and start replace the Dockerfile as the escape hatch. A Dockerfile in the source is ignored.