Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

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

Open
peschmae opened this issue Oct 14, 2017 · 2 comments

Comments

@peschmae
Copy link
Member

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
Copy link
Member Author

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
Copy link
Member Author

peschmae commented Jan 4, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant