Wind, large surface area for solar
Also wave based generators that could also act as dampers/suspension and they wouldn’t steal energy from forward motion like wind would (depending on if you’re generating wind energy or using wind to buttress the batteries).
Ideally a combination of sails coupled with batteries and wave generators sounds like it would be very energy efficient.
Solar on board of cargo vessels is a pipe dream, as is 'wave based generation'.