Use a Trek 500 head lamp as a bike lamp with this Mount, you can use openscad source to suit to your needs
https://www.thingiverse.com/thing:4005945
The author marked this model as their own original creation.