Server side rendering

Depends on what you need to render. WebGL depends largely on the capabilities of your graphics card, and if your server doesn’t have a GPU then it severely limits what you can do. An alternative could be the SoftwareRenderer https://threejs.org/examples/?q=software#software_sandbox although it’s pretty rudimentary compared to the WebGLRenderer.

These two posts seem to suggest using something called Headless GL, but I’ve never used it myself: