Unfortunately I'm very confused.
Few things:
-
Please remove this issue (Unable to save files to mounted drive · Issue #13 · etechonomy/joplin-server · GitHub) as etechonomy just provides automated builds based on joplin server. If you need to file a bug, do it on here: GitHub - laurent22/joplin: Joplin - the secure note taking and to-do app with synchronisation capabilities for Windows, macOS, Linux, Android and iOS. (currently you don't need to file an issue as there is something wrong with your setup, not with the image)
-
If your issue persists after my solution attempts below, please create your own topic in the forum so that this thread doesn't get flooded.
-
Please post code inside of a code block (begin: ```, end: ```)
Is this the exact (!) error message? I ask because of the one backwards slash at /var/lib/postgresql\data. Here as well: Please post stuff like this inside of code blocks or inline code for better readability.
Which /data folder do you reference here? It can't be /home/joplin/data as you mention you've created it as a symbolic link instead.
I don't get, what you mean by this.
Now to some solution attempts:
Maybe rewrite this line to - /home/joplin/data:/var/lib/postgresql/data (removed trailing /).
-
Try the whole thing without symbolic links first. Just try to map the folder inside of the container to some folder outside of the container and see if that works.
-
Why do you use a sym link in the first place? Rewrite the line above to - /mnt/Joplin:/var/lib/postgresql/data and you should be fine without a link.
-
I don't think it is a permission problem, as I never had problems with those. But for you to check, my data folder has permission 700, uid/gid 999. However this shouldn't be an issue as docker creates that folder for you.