瀏覽代碼

Add Template Node red (#164)

Robert Middleswarth 3 年之前
父節點
當前提交
add9717d64
共有 3 個文件被更改,包括 37 次插入9 次删除
  1. 二進制
      images/node-red.png
  2. 4 8
      stack/node-red.yml
  3. 33 1
      template/portainer-v2-arm32.json

二進制
images/node-red.png


+ 4 - 8
stack/node-red.yml

@@ -4,18 +4,14 @@ services:
     image: nodered/node-red:latest
     container_name: node-red
     environment:
-			NODE_RED_CREDENTIAL_SECRET: ${NODE_RED_CREDENTIAL_SECRET}
-			TZ: ${TZ}
+      NODE_RED_CREDENTIAL_SECRET: ${NODE_RED_CREDENTIAL_SECRET}
+      TZ: ${TZ}
     volumes:
-      - node-red-data:/data
+      - data:/data
     ports:
       - 1880:1880
-    networks:
-      iot:
     restart: unless-stopped
 
 volumes:
-  node-red-data:
+  data:
 
-networks:
-  iot:

+ 33 - 1
template/portainer-v2-arm32.json

@@ -2823,7 +2823,39 @@
 				"url": "https://github.com/novaspirit/pi-hosted"
 			}
 		},		
-
+		{
+			"categories": [
+                "Other",
+				"Web",
+				"Tools"
+			],
+			"description": "Node-RED is a programming tool for wiring together hardware devices, APIs and online services in new and interesting ways.  It provides a browser-based editor that makes it easy to wire together flows using the wide range of nodes in the palette that can be deployed to its runtime in a single-click.",
+			"env": [
+				{
+					"default": "your_secret_goes_here",
+					"label": "NODE_RED_CREDENTIAL_SECRET",
+					"name": "NODE_RED_CREDENTIAL_SECRET"
+				},
+				{
+					"default": "America/New_York",
+					"label": "TZ",
+					"name": "TZ"
+				}
+			],
+			"logo": "https://raw.githubusercontent.com/rmiddle/pi-hosted/master/images/node-red.png",
+			"name": "node-red",
+			"platform": "linux",
+			"ports": [
+				"1880:1880/tcp"
+			],
+			"restart_policy": "unless-stopped",
+			"title": "Node Red",
+			"type": 3,
+			"repository": {
+				"stackfile": "stack/node-red.yml",
+				"url": "https://github.com/rmiddle/pi-hosted/"
+			}
+		},
 		{
 			"categories": [
 				"Downloaders"