Back

[SOLVED] Self-hosted storage bucket

  • 0
  • Self Hosted
  • Storage
alon1874
22 Dec, 2023, 13:13

Is it possible to configure the storage path of a bucket if I'm running self-hosted docker and a local fs?

TL;DR
Summary: The user had a problem with a self-hosted storage bucket setup. They initially had an incorrect configuration in the docker-compose file and were advised to update the mounts. After making the necessary changes and restarting Appwrite, they still couldn't see the uploaded files. They were then informed that the files are stored in a Docker volume called "appwrite-uploads." The user asked where they can find those files on the local filesystem and if they can configure the storage path of a bucket while running Appwrite with a local filesystem. The response clarified that the files are stored in a docker volume and provided a link to the documentation explaining how
Christy Jacob
22 Dec, 2023, 13:14

You either choose the local filesystem or a bucket. You cant use both at the same time

Christy Jacob
22 Dec, 2023, 13:15
alon1874
22 Dec, 2023, 13:15

yea, but then on the console I need to create a new storage bucket, no?

Christy Jacob
22 Dec, 2023, 13:15

not sure I get you

alon1874
22 Dec, 2023, 13:17

I'm running the default "local" configuration, I want to store files so I do need to add a bucket:

Christy Jacob
22 Dec, 2023, 13:18

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.

alon1874
22 Dec, 2023, 13:19

great, where can I find those files on the local fs? can I configure it?

Christy Jacob
22 Dec, 2023, 13:20

they are stored in a docker volume called appwrite-uploads .

Christy Jacob
22 Dec, 2023, 13:21

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.

Christy Jacob
22 Dec, 2023, 13:30

Hope that makes sense ?

alon1874
23 Dec, 2023, 19:25

@Christy Jacob I've tried that and it didn't work, I've updated the yml to be

TypeScript
    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

Christy Jacob
23 Dec, 2023, 19:26

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

alon1874
23 Dec, 2023, 19:32

so should I update both sides?

TypeScript
      - /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
Christy Jacob
23 Dec, 2023, 19:33

no. just the left side 👍

alon1874
23 Dec, 2023, 19:36

Great, it's working - thanks a lot!!!

Christy Jacob
23 Dec, 2023, 19:36

awesome 👌

Christy Jacob
23 Dec, 2023, 19:36

[SOLVED] Self-hosted storage bucket

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more