This song is an adaptation of an original English ballad, "Soldier Boy for Me," as collected by Cecil Sharp in 1918 in the Appalachian mountains (printed in English Folk Songs from the Southern Appalachians, vol. 2, No. 272). Sharp noted two different versions of this song. The second version most closely resembles the melody of "Song of the Southern Volunteers," while the first has a very similar text. The difference in the melodies is not surprising since melodies often changed when new words were added.
Another version of the same song was found in the Mississippi Valley by Arthur Palmer Hudson (published in Folksongs of the Mississippi, 1936) with a different title and perspective. Entitled "I Would Not Be Alone," Palmer's text de-emphasizes marriage and stresses "I wouldn't be alone, I wouldn't be alone, I wouldn't be alone to weep and moan." A song about occupations (the singer would not marry alternatively a blacksmith, doctor, or farmer), it was easily adapted by southerners to persuade more young men to volunteer for the war in "Song of the Southern Volunteers."Southern "Volunteers" [New York?] Published by Currier & Ives, [1862?] https://www.loc.gov/pictures/item/2008661642/
conscript vs. volunteer: conscripts were drafted or compulsorily enlisted for military service. Volunteers, as their name implied, enlisted for the army of their own free will.