I’d always heard it was a Civil War march song about a gun.
That’s my understanding as well. However, the first youtube video linked has Bartlett in his own words saying the 2nd and 3rd verses are about Betty Page.
Me - I think the 2nd is about addiction and the 3rd is about a random woman. But I’m not Bill Bartlett.