Eat plenty of fiber. Diets rich in whole grains and fiber rich foods, with limited dairy, help control the production of stomach acid. Ensure you get plenty of fibrous vegetables as part of your healthy balanced diet. If you are not consuming enough vitamin-rich foods your body may find it harder to heal your ulcer.