Compositional Gossip Systems