The coffeemakers draw the water from the general water tank. The picture above is a standard coffeemaker, which can also provide hot water. Some airlines just draw hot water and add tea bags or instant coffee powder, some brew coffee. Longhaul widebody aircraft also have coffee machines that can produce espresso, OS and LH have these on the longhaul, LH Italia and JK had these on short haul aircraft too.