Environment variables

This page lists the environment variables the worker SDK and the platform skeleton read at startup. They are the contract between your worker and the surrounding instance.

Worker -> instance connection #

VariableRequiredDefaultPurpose
ORCHESTY_API_HOSTyesBase URL of the platform's worker API. The worker uses it to register and report.
ORCHESTY_API_KEYyesPre-shared API key used by this worker.
WORKER_HOSTyesURL the platform uses to call back into this worker (its public address).
WORKER_PORTyes8080Port the worker HTTP server listens on.

Identification #

VariableRequiredDefaultPurpose
WORKER_NAMErecommendedcontainer hostnameHuman-readable worker name shown in the Admin UI.
TENANT_IDoptionalMulti-tenant deployments only (e.g. running Orchesty under Applinth). When set, the worker only accepts work routed for the given identifier. Leave unset for standalone Orchesty.

Storage #

VariableRequiredDefaultPurpose
MONGO_DSNPHP only (Node uses platform storage by default)MongoDB connection string used to persist ApplicationInstall.
MONGO_DB_NAMEPHP onlyorchestyMongoDB database name.

Encryption #

VariableRequiredDefaultPurpose
ORCHESTY_ENCRYPTION_KEYyes when storing credentialsSymmetric key used to encrypt addSettings() values. Must be stable across worker restarts.

Logging #

VariableRequiredDefaultPurpose
LOG_LEVELoptionalinfoOne of debug, info, warn, error.
LOG_FORMAToptionaljsonjson for log shippers, text for development.

Local dev #

The full-stack skeleton ships with a .env.dist template. make init-dev renders it into a working .env (your UID/GID, a random ORCHESTY_API_KEY, default DEV_IP, default ports) on the first run. The variables above are the same; only the values change between environments.

See also #

© 2025 Orchesty Solutions. All rights reserved.