Spicy foods don't cause ulcers but they can irritate them. An ulcer diet adds foods with antibacterial effects and compounds that boost healing. It also limits excess acid production, which can ...