There are indeed similarities to 'Alewife' (and other similar broadsides of the period), but Lanfiere's 'Good Fellow's Resolution' is the closest match. You can trace the process of evolution into something resembling the song we all know through successive broadsides over 100+ yuears. The Dubliners' hit owes much to Australian and Canadian versions as well.