The nonlocal Cahn-Hilliard equation incorporates long-range interactions by employing a convolutional kernel in place of additional derivative terms defining its chemical potential. Although the equation allows for a rich existence and regularity theory, determining numerical solutions can become a challenge when the kernel and the energy potential are singular. We present a numerical framework based on the spectral element approach and a suitable domain-decomposition technique that allows us to determine high-quality and error-controlled numerical solutions of the equation under different configurations. This work lays the groundwork for simulating more complex phase-separation biological systems, where singular potentials and nonlocal interactions are predicted to capture physically realistic behaviour.