From 6fe22571f3c78a36f630632e87acb10f90f8ebf5 Mon Sep 17 00:00:00 2001 From: do Date: Sat, 20 Mar 2021 22:21:43 +0100 Subject: [PATCH] node-red container --- base/hostconfig/auto02.sls | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/base/hostconfig/auto02.sls b/base/hostconfig/auto02.sls index 4122ff2..094de39 100644 --- a/base/hostconfig/auto02.sls +++ b/base/hostconfig/auto02.sls @@ -5,8 +5,19 @@ pki: - auto.chaos - auto-conf.chaos - pihole.chaos + - nodered.chaos systemd: service: + container-node-red: + Unit: + Description: Node Red + After: network-online.target local-fs.target + Before: haproxy.service + Service: + ExecStart: /usr/bin/podman start -a node-red + ExecStop: /usr/bin/podman stop node-red + Install: + WantedBy: multi-user.target container-homeassistant: Unit: Description: Homeassistant @@ -128,11 +139,13 @@ haproxy: - host_auto-conf hdr_beg(host) -i auto-conf. - host_z2m hdr_beg(host) -i zwave2mqtt. - host_pihole hdr_beg(host) -i pihole. + - host_nodered hdr_beg(host) -i nodered. use_backends: - auto if host_auto - auto-conf if host_auto-conf - z2m if host_z2m - pihole if host_pihole + - nodered if host_nodered backends: backend1: name: auto @@ -174,6 +187,13 @@ haproxy: host: 127.0.0.1 port: 8080 check: check - - + backend5: + name: nodered + balance: roundrobin + servers: + server1: + name: auto02 + host: 127.0.0.1 + port: 1880 + check: check