The Streamlight TLR-10 G LED Tactical Weapon Light will be compatible with the Glock 23 using the UNIV-2 rail locating key included with the light. However, the light will overhang a significant amount past the muzzle of your pistol. I would recommend the Streamlight TLR-8A Weapon Light and Laser over the TLR-10 due to its smaller dimensions and better holster compatibility. The TLR-8 also features a green laser and white light, it can be found linked below:
https://www.opticsplanet.com/streamlight-tlr-8-a.html