For river shipping it might work, there tugs are commonly used and rivers have power close the entire distance. You need the ability to swap tugs, more often, but that isn't hard to build.
I wonder if you could skip the batteries and just put in overhead catenary like trains have. Tugs mostly have to follow the same paths anyway.