Hello,
I have a python + flask application deployed on the docker. I create 3 containers through the docker-compose. One main mongo and one for seed and a web application docker.
Initially I get to seed the mongo with a json via mongoimport (mongo seed container), but then I would like to update new entries in the mongo.
I tried to create a python function that updates the mongodb, but even with new entries in the json file, the mongo keeps the old data. As far as I could tell he keeps the cache.
How can I update the mongo and keep the new data without having to remove the entire cache?