Usage with DB data in a volume? #54
-
How to use this tool with database data that is stored in a Docker volume and not a bind directory ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
No idea (yet). If the database directory is available inside the container at some path (ie
Does that help? 😄 |
Beta Was this translation helpful? Give feedback.
-
Using a docker volume instead of a bind mount should be as simple as:
Or if using compose: volumes:
db-data-volume:
services:
upgrade:
volumes:
- db-data-volume:/var/lib/postgresql/data Agree @justinclift it would be great to have env vars / config options documented on a wiki page. I'm currently on holidays, but back in a week & will hopefully have some time for writing up some docs 👍 |
Beta Was this translation helpful? Give feedback.
Using the docker volume directory for bind mounts is not advised, as it could cause permission issues or even corruption.
But yes you are right, if the docker volume is already created you should reference the volume like this: