Two 6x2mm magnets one on either side they press fit in but you may want to add a small amount of glue for the magnet sticking out on the left hand side.
Edit: Updated dice stl to fix a corruption in some of the numbers. Added caps to make it easier to keep track of number placement.
The author marked this model as their own original creation.