In addition to the good advice you have already had, pain that comes after eating ANYTHING can be hiatal hernia. If the stomach gets irritated, possibly from a food intolerance, AND there is a hernia through the diaphragm, the stomach can "slip" up part way into the chest.
The test for this is a barium swallow, which is done by a radiologist, with an order from a gastroenterologist. So I would be seeing a gastro doc. He'll likely want to do a scope, since he gets paid for that, but since you can't eatbefore that test, he probably won't see the hernia! I'd probably insist pretty strongly on the barium swallow.
If you find from keeping a good food journal that you only have certain "food triggers," then you can easily avoid those foods. This information will also help your gastroenterologist. If you DO have food triggers, you should also find an allergist who is understanding of these (not all are) and discuss "food challenge testing." An allergy panel isn't a bad thing to get either.