I've issue with dumping data from mongo container into swarm. I can't use run
into swarm, I can't connect other container (run'mongodump
because main network not manually attachable).
I googled this issue and I've found only solutions with docker-compose
--link
which doesn't work in swarm.
My plane was:
- Run other
mongo
container with commandmongodump --host main_mongo_container --out some_volume
. - Compress dump into
tar
- Upload dump onto S3.
- Run script in cron.
I don't have enough experience for solving this issue myself. Had anyone experience in automatization dumping mongo data from swarm container onto s3?
Many thanks in advance!