How to store wordpress media files in Google Cloud Storage buckets?

I am using Google Cloud platform for my website hosting. My website mostly contains images.

I am using the persistent disc of size 50gb for storage purpose. If I increase the size of persistent disks, the cost is becoming high.

Now the drive became full. Persistent Disk is costly compared to Google Cloud Storage buckets (hereafter referred as GCSB). I want to use GCSB.

I know that GCSB is similar to Amazon S3. For S3 we have WP Offload S3 Lite plugin which will help to do the media upload, but For GCSB I didn't find any plugins.

Is there any plugin or way to load media in GCSB so that I can use persistent discs only for important files and GCSB for media files?


If you want to host your WordPress media files on Google Cloud Storage, use the WP-Stateless plugin - it's free. https://wordpress.org/plugins/wp-stateless/

WP-Stateless will handle keeping your WordPress media in-sync with Google Cloud Storage, and it even supports an option to delete the local file once it is successfully uploaded to Google Cloud.


You could use the GCSFuse driver (https://cloud.google.com/storage/docs/gcs-fuse) to mount a GCS bucket in your filesystem.