Follow Invidious Docs - https://docs.invidious.io/improve-public-instance/#2-multiple-invidious-processes
My documentation (may not be up to date) - https://docs.msinfo32.uk/Self%20Hosting/Invidious/Invidious/
Archived copy of my docs (just incase!) - https://archive.ph/oHQkb
Cronjob:
0 */1 * * * docker restart invidious-invidious-1
1 */1 * * * docker restart invidious-invidious-2
2 */1 * * * docker restart invidious-invidious-3
You may not really need this cronjob, as I've found it works perfectly without - however, if you encounter stability problems... it's worth a try.