Your stockpile will depend upon your budget and how long you expect the "state of war" to last. If it's a long, long time then no amount of stockpile will probably last.
At minimum, for pistols about 1,000 to 2,000 rounds per gun; same for rifles; for .22 LR, it would be 10 bricks of 500 ea.; and 500 rounds for shotgun in both buckshot, shot, and slugs.
Store in G.I. ammo cans and in a cool, dry place. The stuff can last indefinitely.
The biggest killer for folks is budget because the price of ammo has been really climbing over the past several years. If you know someone who reloads, and they are willing to let you "roll your own" under their supervision using your brass, powder, projectiles, and primers -- go for it. Some handloaders will use your components and charge a flat fee for their labor (and it's certainly going to be less than over-the-counter at retail).
Remember: BLOAT = Buy Lots of Ammo Today.