Node closes every 1-2 days

So the docker probably stops and then pi node stops, while is OK then I'm available, I often work away and if course the holidays I go away for, Is there anything I can do to either stop this of set something automatically to reboot docker then node? Your help would be greatly appreciated