tageler / tageler-docker

docker compose setup for running tageler
https://hub.docker.com/u/tageler/
MIT License
1 stars 2 forks source link

Ensure mongodb data is persistent, can be backed up, and allows for multiple instances on the same host #7

Open peschmae opened 7 years ago

peschmae commented 7 years ago

Currently we mount /var/lib/mongodb/ into the mongod container, but still it seems to be empty on the docker host.

We need to make sure, that data is properly written outside the container, and look into making the mount path configurable to allow, multiple instances on the same host (e.g. develop & latest)

Best would be to make it in a way, so we can backup just the mongodb, but for backup there are a few more ways to work around it.

peschmae commented 7 years ago

We are using the wrong path within the docker container.

We need to mount /data/db and not /var/lib/mongodb

It should look something like this

volumes:
     - "/var/lib/mongodb:/data/db"
peschmae commented 6 years ago

https://hub.docker.com/r/requilence/mongodb-backup/