A gallon was an Earth unit of volume.
In 2268, Montgomery Scott ordered one-half gallon of Scotch. (TOS: "Spectre of the Gun")
This amount is slightly less than two liters.