Cloud API Overview > @adpt/cloud > nodejs > NodeServiceProps
nodejs.NodeServiceProps interface
Props for nodejs.NodeService().
Signature:
export interface NodeServiceProps
Properties
Property | Type | Description |
---|---|---|
buildOptions | NodeImageBuildOptions | Image build options to pass to nodejs.LocalNodeImage(). |
connectTo | Handle< ConnectToInstance > | Handle< ConnectToInstance >[] | Handles for services that this component connects to. |
deps | Handle | Handle[] | Dependencies that must be deployed before the Container image will build. |
env | Environment | Object containing environment variables that the Container will be started with. |
externalPort | number | The port that the NetworkService will expose. |
port | number | The port number that the Node Container will use. |
scope | NetworkServiceScope | Scope within which the NetworkService will be exposed. |
srcDir | string | Root directory (which contains package.json) for the Node.js app source code. |