Flexible diaphragm or bellows reactor