You might get some mileage out of water locks that they use for brewing [available in any homebrew emporium] sorry, I don't know the technical name, but they allow gasses to escape whilst keeping the nasties from getting in.
Beloved got a set so we could make sauerkraut.
I've been tempted to get some of those, because techology! But unfortunately what I have is working.