Depends on the materials
Ideally the correct adhesive for the materials from Polymarine or RIB Shop
An adhesive sealant such as Sikaflex 291i, or a similar polyurethane, such Stixall, might do it.
Someone will recommend CT1.
Definitely not "bathroom goo"