Is it possible to configure the storage path of a bucket if I'm running self-hosted docker and a local fs?
You either choose the local filesystem or a bucket. You cant use both at the same time
yea, but then on the console I need to create a new storage bucket, no?
not sure I get you
I'm running the default "local" configuration, I want to store files so I do need to add a bucket:
Sure, you can create a bucket here. The buckets here simply represent folders to group your files and are not related to buckes from cloud providers like s3 etc.
great, where can I find those files on the local fs? can I configure it?
they are stored in a docker volume called appwrite-uploads .
You can configure it to a path on your local filesystem. .You need to update that line in your docker compose to point to a folder on your local file system and restart the stack.
Hope that makes sense ?
@Christy Jacob I've tried that and it didn't work, I've updated the yml to be
volumes:
- appwrite-uploads:/home/ubuntu/bucket-storage:rw
- appwrite-cache:/storage/cache:rw
- appwrite-config:/storage/config:rw
- appwrite-certificates:/storage/certificates:rw
- appwrite-functions:/storage/functions:rw
and then restarted the appwrite, but when I've uploaded a file via the console ui, I don't see it on that directory
Hey you've updated the mounts on the right hand side of the declaration.. The right hand side refers to the location inside the docker conitainer and not your host machine
so should I update both sides?
- /home/ubuntu/bucket-storage:/home/ubuntu/bucket-storage:rw
- appwrite-uploads:/storage/uploads:rw
- appwrite-cache:/storage/cache:rw
- appwrite-config:/storage/config:rw
- appwrite-certificates:/storage/certificates:rw
- appwrite-functions:/storage/functions:rw
no. just the left side 👍
Great, it's working - thanks a lot!!!
awesome 👌
[SOLVED] Self-hosted storage bucket
Recommended threads
- Which flutter SDK version for Self Hoste...
Hi all, Is there a good way to figure out which version of flutter SDK and Dart SDK is current for latest available self-hosted 1.8.0 ? I know new features are...
- Bug Report: Crash when trying to createR...
https://github.com/appwrite/sdk-for-android/issues/96 I think the bug is related with this one https://discord.com/channels/564160730845151244/1443887021314539...
- Dokploy docker compose
Hey guys hope y'all doing well, I was wondering if anyone could share a working 1.8.0 docker-compose that works with Dokploy I tried making it but it just does...