Fruit compote stored in an airtight container lasts in the fridge for 1 to 2 weeks or freezes for longer.