Skip to content

Documentation for laravel/sail#128 - add-minio-documentation #7060

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions sail.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- [Running Tests](#running-tests)
- [Laravel Dusk](#laravel-dusk)
- [Previewing Emails](#previewing-emails)
- [Cloud Storage](#cloud-storage)
- [Container CLI](#sail-container-cli)
- [PHP Versions](#sail-php-versions)
- [Sharing Your Site](#sharing-your-site)
Expand Down Expand Up @@ -237,6 +238,25 @@ MAIL_PORT=1025

When Sail is running, you may access the MailHog web interface at: http://localhost:8025

<a name="cloud-storage"></a>
## Cloud Storage

If you chose to install the [MinIO](https://min.io/) service when installing Sail, your application's `docker-compose.yml` file will contain an entry for this S3 compatible Object Storage service. Once you have started your containers, you may connect to MinIO instance within your application by adding the below `disk` to `config/filesystems.php`. Make sure you application also has the [required prerequisites](https://laravel.com/docs/8.x/filesystem#driver-prerequisites) for using an S3 compatible filesystems.

```bash
'minio' => [
'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID', 'sail'),
'secret' => env('AWS_SECRET_ACCESS_KEY', 'password'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
'bucket' => env('AWS_BUCKET', 'local'),
'endpoint' => env('AWS_ENDPOINT', 'http://minio:9000'),
'use_path_style_endpoint' => true,
],
```

From your local machine, you may access MinIO's web based administration panel by navigating to `http://localhost:9000` in your web browser. You will want to log in to create storage buckets from the interface, the default username is `sail` and the corresponding password is `password`.

<a name="sail-container-cli"></a>
## Container CLI

Expand Down