Even standard firefighting units have foam containers to help with certain types of fires.
There is a container that holds the foam base. A special attachment fits it onto a hose so that the water mixes with the base and dispenses foam.
It has been a long time since I was a volunteer firefighter so I don't remember all the details now...
_________________________
"I reject your reality and substitute my own..." - Adam Savage / Mythbusters