I know German subs carried a few bottles of beer which could be doled out in small quantities to celebrate a victory or holiday.
Sadly, in the US Navy no as of 1914...
GENERAL ORDER NO. 99
NAVY DEPARTMENT,
Washington, D.C., June 1, 1914
CHANGE IN ARTICLE 827, NAVAL INSTRUCTIONS. On July 1, 1914, Article 827, Naval Instructions, will be annulled and in its stead the following will be substituted:
"The use or introduction for drinking purposes of alcoholic liquors on board any naval vessel, or within any navy yard or station, is strictly prohibited, and commanding officers will be held directly responsible for the enforcement of this order."
JOSEPHUS DANIELS
Secretary of the Navy.