{"id":27867819,"url":"https://github.com/sesto-dev/next-minio-self-host","last_synced_at":"2025-07-23T09:05:21.299Z","repository":{"id":272244315,"uuid":"915029270","full_name":"sesto-dev/next-minio-self-host","owner":"sesto-dev","description":"Repo for YouTube tutorial on how to self-host a MinIo instance and connect a Next.js 15 app to MinIo and upload files","archived":false,"fork":false,"pushed_at":"2025-01-15T14:01:46.000Z","size":173,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-04T22:54:48.952Z","etag":null,"topics":["minio","nextjs","nextjs15","s3","s3-bucket","s3-client","s3-storage"],"latest_commit_sha":null,"homepage":"https://youtu.be/UPygkumJc2A","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sesto-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-10T20:12:58.000Z","updated_at":"2025-04-16T02:04:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"df6a6140-08b2-415f-9e45-62b21bc4334d","html_url":"https://github.com/sesto-dev/next-minio-self-host","commit_stats":null,"previous_names":["sesto-dev/next-minio-self-host"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sesto-dev/next-minio-self-host","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sesto-dev%2Fnext-minio-self-host","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sesto-dev%2Fnext-minio-self-host/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sesto-dev%2Fnext-minio-self-host/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sesto-dev%2Fnext-minio-self-host/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sesto-dev","download_url":"https://codeload.github.com/sesto-dev/next-minio-self-host/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sesto-dev%2Fnext-minio-self-host/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266649137,"owners_count":23962174,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["minio","nextjs","nextjs15","s3","s3-bucket","s3-client","s3-storage"],"created_at":"2025-05-04T22:54:19.478Z","updated_at":"2025-07-23T09:05:21.291Z","avatar_url":"https://github.com/sesto-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dockerized Full-Stack Application with Traefik and MinIO\n\nThis project is a Dockerized full-stack application setup featuring a **frontend application** and **MinIO object storage**, managed with **Traefik** as a reverse proxy and TLS terminator. The setup is optimized for production environments with scalability, security, and ease of deployment in mind.\n\n## Features\n\n- **Frontend Application**: A Node.js-based application running in production mode.\n- **MinIO**: High-performance object storage for file uploads and S3-compatible APIs.\n- **Traefik**: Acts as a reverse proxy, manages HTTPS certificates with Let's Encrypt, and enforces HTTPS.\n- **Environment Variables**: All sensitive configurations are stored in `.env` files for better security and flexibility.\n- **Volume Persistence**: Data stored in MinIO persists through container restarts via Docker volumes.\n- **Network Segmentation**: Containers communicate securely through isolated Docker networks.\n\n---\n\n## Prerequisites\n\n- **Docker** and **Docker Compose** installed on your system.\n- A domain name for the frontend and MinIO endpoints.\n- Valid DNS records pointing to the server hosting the application.\n\n---\n\n## Environment Variables\n\nDefine the following variables in a `.env` file in the root directory of your project:\n\n### General\n\n```env\n# Frontend App\nFRONTEND_APP_DOMAIN=example.com\n\n# MinIO\nMINIO_ROOT_USER=admin\nMINIO_ROOT_PASSWORD=33382244\nMINIO_API_PORT=9000\nMINIO_CONSOLE_PORT=9001\n\n# MinIO S3 Access\nMINIO_ENDPOINT=http://example.com\nMINIO_ACCESS_KEY=minio\nMINIO_SECRET_KEY=miniosecret\nMINIO_BUCKET_NAME=boot\n\n# Traefik\nMINIO_DOMAIN=minio.example.com\nMINIO_CONSOLE_DOMAIN=console.minio.example.com\n```\n\n## Services\n\n1. Frontend Application\n\n   Built from the Dockerfile in ./frontend/app.\n   Accessible at http://${FRONTEND_APP_DOMAIN}.\n   Configured with Traefik for HTTPS and custom headers.\n\n2. MinIO\n\n   Accessible via:\n   API: http://${MINIO_DOMAIN} or https://${MINIO_DOMAIN}.\n   Console: http://${MINIO_CONSOLE_DOMAIN} or https://${MINIO_CONSOLE_DOMAIN}.\n   Ports bound to localhost for security (127.0.0.1).\n\n3. Traefik\n\n   Manages routing and TLS for all services.\n   Automatically provisions and renews SSL certificates via Let's Encrypt.\n\n## Setup and Deployment\n\n1. Clone the Repository\n\ngit clone https://github.com/your-repo/project-name.git\ncd project-name\n\n2. Create .env File\n\nPopulate the .env file with the variables described above. 3. Start the Services\n\nRun the following command to start all services:\n\ndocker-compose up -d\n\n4. Verify the Deployment\n\n   Access the frontend at https://${FRONTEND_APP_DOMAIN}.\n    Access the MinIO API at https://${MINIO_DOMAIN}.\n   Access the MinIO console at https://${MINIO_CONSOLE_DOMAIN}.\n\nPersistent Data\n\n    MinIO: The minio-data volume ensures that your uploaded files persist even after container restarts.\n\n## Troubleshooting\n\n### Common Issues\n\n    Services Not Starting:\n        Check the logs using docker-compose logs.\n        Ensure your .env file is correctly configured.\n\n    SSL Certificate Errors:\n        Verify your DNS records and ensure the domains resolve to your server.\n\n    MinIO Access Denied:\n        Double-check MINIO_ACCESS_KEY and MINIO_SECRET_KEY.\n\nDebugging Commands\n\n    Restart a specific service:\n\ndocker-compose restart \u003cservice_name\u003e\n\nView service logs:\n\n    docker-compose logs -f \u003cservice_name\u003e\n\n## Contributing\n\nContributions are welcome! Please follow the standard GitHub workflow:\n\nFork the repository.\nCreate a feature branch.\nSubmit a pull request with detailed information about your changes.\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsesto-dev%2Fnext-minio-self-host","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsesto-dev%2Fnext-minio-self-host","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsesto-dev%2Fnext-minio-self-host/lists"}