Well,

I've beat my head on this for a week now.

I've run through the setup process so many times that I've bumped into the LetsEncrypt weekly cert limit.

I cannot get the server to use a mounted drive for storage. I've tried a symlink to the folder, nothing works.

I always get error: could not change permissions of directory "/var/lib/postgresql\data": Operation not supported

So, for now I'm syncing locally.

Unfortunately it's not going to take long to fill up this sd card at 64gb.

Any ideas on how to move forward with a mounted external storage drive?

It's a Synology NAS that I've got mounted via CIFS.

That part works just fine.

Is this, perhaps a permission issue?

My compose-docker file looks like this:

services:
db:
restart: unless-stopped
image: postgres:latest
ports:
- "5432:5432"
volumes:
- /home/joplin/data/:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=mypassword
- POSTGRES_USER=joplin
- POSTGRES_DB=joplin
app:
environment:
- APP_BASE_URL=https://MY-SERVER.COM/joplin
- APP_PORT=22300
- POSTGRES_PASSWORD=mypassword
- POSTGRES_DATABASE=joplin
- POSTGRES_USER=joplin
- POSTGRES_PORT=5432
- POSTGRES_HOST=db
- DB_CLIENT=pg
restart: unless-stopped
image: etechonomy/joplin-server:latest
ports:
- "22300:22300"
depends_on:
- db

where /home/joplin/data is a symbilic link to /mnt/Joplin

It weird as the /data folder wasn't there before the process started, but was created in the process.

Any thoughts?

Addendum as this daemon won't let me add another message (3 in a row ?)

I've filed a support issue over on:

https://github.com/etechonomy/joplin-server

cheers,