At this point I don’t have to many ideas. I’m assume both docker containers are running the same machine so them losing a connection to each other really isn’t possible.
Does rode-red itself seem unresponsive when this happens or just the HA nodes? If you try and run a call-service node when it’s in this state does it go through? Same with a get-template node?
[{"id":"9e66f282.eef6","type":"inject","z":"ffbd7f06.4a014","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":428,"y":848,"wires":[["4c27dcd.649ff24"]]},{"id":"4c27dcd.649ff24","type":"api-call-service","z":"ffbd7f06.4a014","name":"turn on light","server":"2dad33ee.42bf5c","service_domain":"light","service":"toggle","data":"{\"entity_id\":\"light.light1\"}","mergecontext":"","output_location":"","output_location_type":"none","x":598,"y":848,"wires":[["5e7c158a.53330c"]]},{"id":"5e7c158a.53330c","type":"debug","z":"ffbd7f06.4a014","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":774,"y":848,"wires":[]},{"id":"7d3de24f.8a109c","type":"inject","z":"ffbd7f06.4a014","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":428,"y":896,"wires":[["715374a4.b3d23c"]]},{"id":"715374a4.b3d23c","type":"api-render-template","z":"ffbd7f06.4a014","name":"sun state","server":"2dad33ee.42bf5c","template":"{{states.sun.sun.state}}","x":588,"y":896,"wires":[["ee4fbbc4.540648"]]},{"id":"ee4fbbc4.540648","type":"debug","z":"ffbd7f06.4a014","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":774,"y":896,"wires":[]}]