Simply putting a system into r/o mode could break thinks. Therefore, some overlayFS might be needed. You could have a look into following if using a Raspberry Pi device Samba Fails on RO filesystem - #2 by Joulinar
But this is a couple of years old. Hopefully still working. At least a direction you can look into.