John Billings Hardtack and Coffee is a detailed account of camp life during the war. Here’s the section discussing rations and (obviously) coffee:
https://www.gutenberg.org/cache/epub/72532/pg72532-images.ht...
https://www.gutenberg.org/cache/epub/72532/pg72532-images.ht...