Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add. Optional MinIO Service for File Storage #40

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

rahu1ramesh
Copy link
Contributor

This PR introduces an optional MinIO service to the Docker Compose setup for the Medispeak backend. MinIO provides an alternative to AWS S3 for file storage, while maintaining compatibility with the S3 API. This update includes the necessary environment variables and configuration changes to enable seamless switching between MinIO and AWS S3.

Changes:

  • Added MinIO service to docker-compose.yml under the minio profile.
  • Introduced environment variables for MinIO configuration in the .env file.
  • Updated the Rails storage.yml configuration to support MinIO as an S3-compatible storage option.
  • Added a new STORAGE_SERVICE environment variable to toggle between storage providers (minio, amazon, local).

Usage:

To enable the MinIO service, run the following command:

docker-compose --profile minio up -d

Ensure the relevant environment variables are set for MinIO in the .env file.

Notes:

  • MinIO is intended as an alternative to AWS S3, particularly for local or non-AWS deployments.
  • The MinIO service runs on port 9000 for API access and port 9001 for the management console (optional).

Issue Reference:

This PR addresses Issue #39 raised in the Medispeak backend repository.

@bodhish bodhish merged commit ac4164f into medispeak:main Oct 22, 2024
2 of 4 checks passed
@rahu1ramesh rahu1ramesh deleted the BAH-4128 branch October 23, 2024 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants