Mongo DB location

I an installing mender-server on EC2 and I want all the data to be on a seperate drive from the boot drive. Is there a way to do this during setup? I’m using docker-compose not Kubernetes.

Thanks,

John

Hi @jjsteele ,
the demo docker-compose setup allows you to quickly spin up a complete environment with a sample MongoDB instance in the docker composition. Docker volumes are located into /var/lib/docker/volumes by default, so the quickest solution is to have a partition dedicated to /var/lib/docker in your OS setup.

In alternative, you could just run a standalone MongoDB setup and choose the storage configuration that best suites your needs. Then you have to tweak the docker compose example, to match your external MongoDB, instead of the docker compose service one.

@robgio Thanks for that, the partition seems the easist way to go and works find.

John