While it's possible to freeze the compote, the texture of the fruits may change after thawing, becoming softer. If you plan to freeze it, consider doing so without the fruits and add fresh ones when you reheat it.