Closed derekstavis closed 8 years ago
A persistent volume? The mongodb container already persists it's data to disk, you don't need to do anything.
Ok. I gave a look at the source code, and at this line the persistent volume is mounted inside mongo's docker container. I'd like to have a way to specify my own path, instead of needing to use the default $SERVICE_ROOT/data
directory.
Sorry, that's not possible, and I don't see any benefits to being able to do this. Is there a reason you want this functionality?
Yes. In my scenario I have some external attached disks in my cloud instance, and the volumes are mounted in /mnt/db-dev
and /mnt/db-prod
, for example. I could mount inside dokku-mongo
default location, but this doesn't look good to me.
Try a symlink instead?
Thanks for the fast response. I have opted to mount the volume inside plugin's default directory.
I'm trying to use
dokku docker-options
to add a persistent volume to mongodb container. Unfortunately, I found no way of doing it becausedocker-options
expect and app name and theoretically this plugin doesn't expose an app.What's the right way of accomplishing this task?