# Basic How-To for Using MinIO storage server run by you for your Discourse Instance

**URL:** <https://meta.discourse.org/t/basic-how-to-for-using-minio-storage-server-run-by-you-for-your-discourse-instance/176758>\
**Category:** General\
**Created:** [January 21, 2021, 12:35am UTC](https://meta.discourse.org/t/basic-how-to-for-using-minio-storage-server-run-by-you-for-your-discourse-instance/176758 "2021-01-21T00:35:15Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![teward](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/teward/32/148702_2.png) [@teward](https://meta.discourse.org/u/teward)\
**Post date:** [January 21, 2021, 12:35am UTC](https://meta.discourse.org/t/basic-how-to-for-using-minio-storage-server-run-by-you-for-your-discourse-instance/176758/1 "2021-01-21T00:35:15Z")

</div>

**Utilizing MinIO server for S3 compatible object storage**

[MinIO](https://min.io/) is an S3-compatible object storage server solution that is cloud-native by default but easy to deploy on on-prem servers or VPSes or cloud servers for your use as an alternative to Amazon AWS S3 or other systems, and is compatible with Discourse when configured right.

This section presupposes that the following are true in your environment:

1. You have a fully configured MinIO server instance
2. You have Domain Support enabled in the MinIO configuration
3. You have DNS configuration properly set up for MinIO so that bucket subdomains properly resolve to the MinIO server
4. The bucket `discourse-data` exists on the MinIO server and has a “public” policy set on it
5. The bucket `discourse-backups` exists on the MinIO server and is a private bucket for uploads to be put into (and not publicly reachable - the default policy for new buckets)
6. Your S3 CDN URL is a properly configured CDN pointing to the bucket and cache requests, as stated earlier in this document.

If you have all of the above requirements available, then you should be good to go.

An example configuration would be like this:

```yaml
DISCOURSE_USE_S3: true
DISCOURSE_S3_REGION: anything
DISCOURSE_S3_ENDPOINT: https://minio.example.com
DISCOURSE_S3_ACCESS_KEY_ID: myaccesskey
DISCOURSE_S3_SECRET_ACCESS_KEY: mysecretkey
DISCOURSE_S3_CDN_URL: https://discourse-data-cdn.example.com
DISCOURSE_S3_BUCKET: discourse-data
DISCOURSE_S3_BACKUP_BUCKET: discourse-backups
DISCOURSE_BACKUP_LOCATION: s3

```

This will provide you with a basic MinIO configuration with a MinIO server in place of Amazon S3.

---

_[View the full topic](https://meta.discourse.org/t/basic-how-to-for-using-minio-storage-server-run-by-you-for-your-discourse-instance/176758)._
