light-process
API referenceInterfaces

NodeJSON

Defined in: src/models/Node.ts:13

Properties

entrypoint

entrypoint: string | null;

Defined in: src/models/Node.ts:23


env?

optional env?: string[];

Defined in: src/models/Node.ts:31

Names of environment variables to pass through from the server env to the container. Values are never serialized.


files

files: CodeFiles;

Defined in: src/models/Node.ts:19


id

id: string;

Defined in: src/models/Node.ts:14


image

image: string | null;

Defined in: src/models/Node.ts:20


inputs

inputs: IOSchema | null;

Defined in: src/models/Node.ts:17


name

name: string;

Defined in: src/models/Node.ts:15


networks

networks: string[];

Defined in: src/models/Node.ts:29

Docker networks. Empty uses light-run default; first entry is the primary (Docker NetworkMode), the rest are connected after create.


outputs

outputs: IOSchema | null;

Defined in: src/models/Node.ts:18


providesEnv?

optional providesEnv?: Record<string, string>;

Defined in: src/models/Node.ts:35

Literal env injected into the container. Values may contain ${service:<id>} placeholders, resolved to a service container's hostname at run time. Use this to point a workload at a sidecar (e.g. { "BASE_URL": "http://${service:proxy}:8080" }).


setup

setup: string[];

Defined in: src/models/Node.ts:22

Shell commands executed before the entrypoint (e.g. 'pip install numpy')


timeout

timeout: number;

Defined in: src/models/Node.ts:26

Timeout in ms - 0 means no timeout


type

type: NodeType;

Defined in: src/models/Node.ts:16


workdir

workdir: string;

Defined in: src/models/Node.ts:24

On this page