Operating system
Linux
Joplin version
2.14.20
Sync target
Joplin Server
What issue do you have?
Docker Joplin Server won't utilize external drives.
I've beat my head on this for weeks now.
I've run through the setup process so many times that I've bumped into the LetsEncrypt weekly cert limit.
My compose-docker file looks like this:
'''
services:
db:
restart: unless-stopped
image: postgres:latest
ports:
- "5432:5432"
volumes:
- /mnt/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 /mnt/joplin-data is mounted via /etc/fstab like this:
//192.168.10.10/homes/chris/Joplin /mnt/joplin-data cifs credentials=/home/username/cifs.creds
The mount works perfectly fine, but when running sudo docker compose down, sudo docker compose pull, sudo docker compose up, I get this:
It's complaining "could not change permissions of directory "/var/lib/postgresql/data": Operation not supported".
So, removing the mount statement from /etc/fstab and rebooting. I put a copy of the Joplin data files in a local folder named /mnt/joplin-data.
I do a sudo docker compose down, sudo docker compose pull, sudo docker compose up, and I get this:
And everything is fine. The server works, yadda, yadda, yadda. Trouble is it's stored locally and this isn't the biggest SD Card in the world.
Here's where it get's really weird.
If I do the mount from the command line: sudo mount -t cifs -o credentials=/home/username/cifs.creds //192.168.10.10/homes/chris/Joplin /mnt/joplin-data, it still works.
Until it get's rebooted and it all goes to foo-foo.
So, I'm reaching out for assistance.
What have I gotten wrong?
thanks
chris