{ "module": "nodered", "version": "1", "emits": [ "module.nodered.flows.deployed" ], "own-secrets": { "broker": "/var/lib/mesh/nodered/broker" }, "capabilities": [ "container-runtime" ], "listens": [ { "port": 1880, "protocol": "tcp", "from": "mesh", "why": "the flow editor and the endpoints flows expose" } ], "resources": [ { "id": "mesh-state", "type": "directory", "path": "/var/lib/mesh/nodered", "mode": "0700" }, { "id": "data", "type": "directory", "path": "/services/nodered/data", "mode": "0700", "owner": "1000:1000" }, { "id": "server", "type": "container", "name": "nodered", "image": "nodered/node-red@sha256:02a2b92a41b73d2bc388238b86e4fcaab7fb5466373adb24e1df6aa5845265ff", "env": { "TZ": "Etc/UTC" }, "ports": [ "1880" ], "volumes": [ "/services/nodered/data:/data" ] }, { "id": "runtime-config", "type": "file", "path": "/var/lib/mesh/nodered/config.json", "mode": "0600", "content": "{}\n", "merge": "json" }, { "id": "runtime", "type": "container", "name": "mesh-nodered", "network": "host", "volumes": [ "/var/lib/mesh/nodered/broker:/run/secrets/broker:ro", "/var/lib/mesh/nodered/config.json:/run/config/config.json:ro" ], "env": { "MESH_BROKER_FILE": "/run/secrets/broker", "MESH_NODERED_URL": "http://127.0.0.1:1880", "MESH_NODERED_CONFIG_FILE": "/run/config/config.json" }, "restart-on": [ "runtime-config" ], "artifact": "runtime" } ], "requires": [ "route" ], "contributes": { "route": { "label": "nodered", "port": 1880 } }, "binds": { "route": "/var/lib/mesh/nodered/route.json" }, "build": { "on": [ { "arg": "BUILD_BASE", "module": "mesh-tools", "artifact": "build" }, { "arg": "RUNTIME_BASE", "module": "mesh-tools", "artifact": "runtime" } ], "artifacts": [ { "name": "runtime", "kind": "image", "from": "Dockerfile" } ] } }