This song comes from the early German shanty collection Knurrkahn. It is apparently a true story composed by the German sailors aboard the training ship Arkona in the early 20th century.