This is a parametric spice rack.
The uploaded .stl
(45 mm square bottle) works well with these: https://www.amazon.fr/gp/product/B0925Y4L5D/ref=ppx_yo_dt_b_asin_title_o05_s00?ie=UTF8&th=1
I recommend you to print a single block holder to do a quick test fit.
This rack can be mounted on cabinet doors using double sided tape. Don't hesitate to put more than needed.
Parametrize to your own need using openSCAD.
Software: OpenSCAD
Print Settings:
The author hasn't provided the model origin yet.