The answer depends how close you want those weapons to be to their OTL counterpart? Is it a off the shelf V-1/V-2 or can it be 'modified'?
Off the shelf for the V-2 is slightly harder to achieve but doable with what the Germans had and proposed, keeping the fuel from boiling off is tricky but again possible. (There's not much to say in this scenario to what was OTL proposed and already discussed on this forum, too small a payload, inaccurate - thought hitting a big city will make it a non problem - and not worth enough to make a separate compartment in an U-Boat)
The V-1 is easier, much easier, requiring only a launching rail and a carrying compartment not unlike the V-2's... this is the easiest option. Then you could go for a slightly larger U-Boat (below and around I-400 class) that can have dozen of disassembled V-1s and a launching rail.
If they can be modified then it will become much easier. Instead of the V-2 (or A-4 as it was officially called) the A-8, a storage-able propellant version will undoubtedly make this task easier, requiring only a slight modifications of a U-Boat to add an integrated launching compartment akin to the late war and post war design.