-
Hi everyone! Is there a reliable way to update your paperless-ngx running on docker with docker-compose ? After updating with docker-compose I have lost both my configuration (correspondents, tags, etc) and my data (0 documents in the GUI, luckily still available in the old docker volume directory). Please let me know if there is a better way to upgrade your paperless-ngx without going through such a headache. Many thanks! Commands run:
docker-compose file:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
The commands you executed are perfectly fine, just map your directories right next time:
It's |
Beta Was this translation helpful? Give feedback.
-
This discussion has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. |
Beta Was this translation helpful? Give feedback.
What he's (accurately) saying is your
volumes:
underwebserver
is incorrect. I think youre sort of mixing volumes vs bind-mounts.If you want to use bind-mounts (I do, easier in some ways, but there are pros / cons) it should be
SOURCE:TARGET
e.g. it should be/srv/dev-disk-by-uuid-abcd:/usr/src/paperless/data
to map that paperless dir to your host dir.If you want to use volumes, it would be
VOLUME:TARGET
, e.g.data:/usr/src/paperless/data
(as is in the compose files).Note the TARGET is the same in both, the target dir inside the paperless container, currently youre mapping to non-existent dir (/srv/dev-disk-by-uuid-abcd doesnt exist) and data is getting lost cause its not saved externa…