Update Minio docs

This commit is contained in:
Pavel Bychko 2023-07-12 19:41:28 +03:00
parent 7b1eee549f
commit f0f73ca34f
1 changed files with 26 additions and 23 deletions

View File

@ -1232,39 +1232,42 @@ A package ([Laravel RethinkDB](https://github.com/duxet/laravel-rethinkdb)) is b
## Use Minio ## Use Minio
1. Configure Minio: 1. Configure Minio:
- On the workspace container, change `INSTALL_MC` to true to get the client - On the workspace container, change `WORKSPACE_INSTALL_MC` to true to get the client
- Set `MINIO_ACCESS_KEY` and `MINIO_ACCESS_SECRET` if you wish to set proper keys - Set `MINIO_ACCESS_KEY` and `MINIO_ACCESS_SECRET` if you wish to set proper keys
2. Run the Minio Container (`minio`) with the `docker-compose up` command. Example: 2. Run the Minio Container (`minio`) with the `docker-compose up` command. Example:
```bash ```bash
docker-compose up -d minio docker-compose up -d minio
``` ```
3. Open your browser and visit the localhost on port **9000** at the following URL: `http://localhost:9000` 3. Open your browser and visit the localhost on port **9000** at the following URL: `http://localhost:9000`
4. Create a bucket either through the webui or using the mc client: 4. Create a bucket either through the webui or using the mc client:
```bash ```bash
mc mb minio/bucket mc mb minio/bucket
``` ```
5 - When configuring your other clients use the following details: 5. When configuring your other clients use the following details:
``` ```
AWS_URL=http://minio:9000 AWS_URL=http://minio:9000
AWS_ACCESS_KEY_ID=access AWS_ACCESS_KEY_ID=access
AWS_SECRET_ACCESS_KEY=secretkey AWS_SECRET_ACCESS_KEY=secretkey
AWS_DEFAULT_REGION=us-east-1 AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=test AWS_BUCKET=test
AWS_PATH_STYLE=true AWS_USE_PATH_STYLE_ENDPOINT=true
``` ```
6 - In `filesystems.php` you shoud use the following details (s3):
``` 6. In `filesystems.php` you should use the following details (s3):
's3' => [ ```php
'driver' => 's3', 's3' => [
'key' => env('AWS_ACCESS_KEY_ID'), 'driver' => 's3',
'secret' => env('AWS_SECRET_ACCESS_KEY'), 'key' => env('AWS_ACCESS_KEY_ID'),
'region' => env('AWS_DEFAULT_REGION'), 'secret' => env('AWS_SECRET_ACCESS_KEY'),
'bucket' => env('AWS_BUCKET'), 'region' => env('AWS_DEFAULT_REGION'),
'endpoint' => env('AWS_URL'), 'bucket' => env('AWS_BUCKET'),
'use_path_style_endpoint' => env('AWS_PATH_STYLE', false) 'endpoint' => env('AWS_URL'),
], 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false)
``` ],
`'AWS_PATH_STYLE'` shout set to true only for local purpouse ```
`AWS_USE_PATH_STYLE_ENDPOINT` should set to true only for local purpose