undb icon indicating copy to clipboard operation
undb copied to clipboard

🐛 [BUG] - Attachment docker volume bind missing?

Open B4rtware opened this issue 1 year ago • 0 comments

Description

I have upgraded from 0.10.2 to 0.11.0 and lost my attachments (images) I had inside a table (not a big issue). Using something like

docker run -d --name undb -p 4000:4000 --platform linux/x86_64 -v ~/.undb/:/var/opt/.undb -v ~/.undb/attachments/:/undb/attachments ghcr.io/undb-xyz/undb:latest

should prevent it since mounting also the attachment folder. I don't know if there are other persistent folders which needs to be mounted. Or moving the attachment folder inside of the docker to /var/opt/.undb could also be an option.

Reproduction URL

No response

Reproduction steps

1. Start a docker container via the provided command in the readme
2. Create a table with an attachment field and upload an image
3. Stop the container `docker stop <container id>`
4. Delete the container `docker rm <container id>`
5. Start a docker container via the provided command in the readme

Now the attachment cant be resolved anymore.

Screenshots

No response

Logs

No response

Browsers

Chrome

B4rtware avatar Dec 19 '23 23:12 B4rtware