# Self Hosting NOCODB

**URL:** <https://community.nocodb.com/t/self-hosting-nocodb/980>\
**Category:** Self-Host\
**Created:** [December 18, 2023, 2:39pm UTC](https://community.nocodb.com/t/self-hosting-nocodb/980 "2023-12-18T14:39:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sairam.kuppusamy](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.nocodb.com/sairam.kuppusamy/32/424_2.png) [@sairam.kuppusamy](https://community.nocodb.com/u/sairam.kuppusamy)\
**Post date:** [December 18, 2023, 2:39pm UTC](https://community.nocodb.com/t/self-hosting-nocodb/980/1 "2023-12-18T14:39:25Z")

</div>

If we download the NOCODB software, install and completely SELF-HOST NOCODB server ourselves in our own server OR using a cloud service provider, can we then

1. Map and store the images in our own cloud bucket (like AWS S3 / Google Cloud bucket) ?
2. Store all data records in our own postgresql instance hosted by us in cloud? (this part I am sure is feasible)

Thanks in advance for your response/suggestions.

---

<div class="post-metadata">

**Author:** ![rajanish](https://avatars.discourse-cdn.com/v4/letter/r/4bbf92/32.png) [@rajanish](https://community.nocodb.com/u/rajanish)\
**Post date:** [December 18, 2023, 4:01pm UTC](https://community.nocodb.com/t/self-hosting-nocodb/980/2 "2023-12-18T16:01:02Z")

</div>

hope this helps…

1. you can enable storage plugin at [App Store](https://docs.nocodb.com/account-settings/oss-specific-details/#app-store) and then all attachments will be stored in that.

2. [Data sources overview | NocoDB](https://docs.nocodb.com/data-sources/data-source-overview)

---

<div class="post-metadata">

**Author:** ![sairam.kuppusamy](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.nocodb.com/sairam.kuppusamy/32/424_2.png) [@sairam.kuppusamy](https://community.nocodb.com/u/sairam.kuppusamy)\
**Post date:** [December 18, 2023, 4:18pm UTC](https://community.nocodb.com/t/self-hosting-nocodb/980/3 "2023-12-18T16:18:20Z")

</div>

Thanks, Rajanish. Appreciate your quick response.

---

<div class="post-metadata">

**Author:** ![Navi](https://avatars.discourse-cdn.com/v4/letter/n/3be4f8/32.png) [@Navi](https://community.nocodb.com/u/Navi)\
**Post date:** [December 18, 2023, 4:27pm UTC](https://community.nocodb.com/t/self-hosting-nocodb/980/4 "2023-12-18T16:27:01Z")

</div>

Thanks @sairam.kuppusamy for posting your question here from the email.

To further clarify the answer from @rajanish with context in your email. If you intend to map an existing file in s3/azure to a row it’s not possible. However, you can easily download your files and upload it back to the rows after having set the [storage credentials](https://docs.nocodb.com/getting-started/self-hosted/environment-variables/) (search for s3 related)

---

<div class="post-metadata">

**Author:** ![sairam.kuppusamy](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.nocodb.com/sairam.kuppusamy/32/424_2.png) [@sairam.kuppusamy](https://community.nocodb.com/u/sairam.kuppusamy)\
**Post date:** [December 19, 2023, 6:00am UTC](https://community.nocodb.com/t/self-hosting-nocodb/980/5 "2023-12-19T06:00:19Z")

</div>

Thanks Navi.

We are trying to oversome the limitations on storage size (25GB) as our business deals with high resolution CGI images / Videos rendered from 3D files. So we quickly consume a lots of space…

If I understand this correct, I will be able to do the following:-

1. Setup the environment variables (storage) to point to S3 /aZURE bucket / folders. This setting will control the storage of attachments
2. Then manually upload images into attachments which will get stored in above (s3/azure) destination as configured
3. I need to do a 1 time exercise of downloading all current attachments and upload them using some script/automation/manual. (As there is NO solution to map attachments of existing rows)

I could see your reply mentioning only S3 and AZURE. So is Google Cloud Storage supported?

Thanks a lot

---

<div class="post-metadata">

**Author:** ![Navi](https://avatars.discourse-cdn.com/v4/letter/n/3be4f8/32.png) [@Navi](https://community.nocodb.com/u/Navi)\
**Post date:** [December 20, 2023, 9:39am UTC](https://community.nocodb.com/t/self-hosting-nocodb/980/6 "2023-12-20T09:39:05Z")

</div>

It appears [we support](https://github.com/nocodb/nocodb/tree/14a1bd733db44619abcb4418bb22ad4b42b93219/packages/nocodb/src/plugins/gcs). Did you try it ?

---

<div class="post-metadata">

**Author:** ![sairam.kuppusamy](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.nocodb.com/sairam.kuppusamy/32/424_2.png) [@sairam.kuppusamy](https://community.nocodb.com/u/sairam.kuppusamy)\
**Post date:** [December 23, 2023, 2:40pm UTC](https://community.nocodb.com/t/self-hosting-nocodb/980/7 "2023-12-23T14:40:17Z")

</div>

Hi Navi, Thanks for your response.

I am still stuck with the following step:-

1. I have created a postgresql instance/database (root\_db) on Google Cloud Services (CloudSQL)
2. Then I try to create a Service using Google Cloud Run (using the docker image) and I also add 2 environment variables NC\_DB and NC\_AUTH\_JWT\_SECRET and then create the service.

Step 2 gets the following error:  
Error: Error: Configuration missing meta db connection at NcConfig.create (/usr/src/app/docker/main.js:2:1871941)

If there is any guidane/write up on achieving the following please share links. Thanks in advance

We want the database to be our own (postgresql on Google Cloud Service)  
We want the images/files to be stores in Google Storage.

Thanks  
Sairam

---

<div class="post-metadata">

**Author:** ![pranavxc](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@pranavxc](https://community.nocodb.com/u/pranavxc)\
**Post date:** [January 3, 2024, 1:12pm UTC](https://community.nocodb.com/t/self-hosting-nocodb/980/8 "2024-01-03T13:12:39Z")

</div>

It looks like the error occurs when `database` name is missing in the connection parameter, Can you double check the `NC_DB` value and if possible share a sample connection url similar to yours with dummy value.
