Skip to content

Commit

Permalink
Merge pull request #3415 from abordage/update-minio-docs
Browse files Browse the repository at this point in the history
Update Minio docs
  • Loading branch information
bestlong committed Jul 13, 2023
2 parents d6c9cc2 + 7f7e921 commit 1c2f07c
Showing 1 changed file with 29 additions and 25 deletions.
54 changes: 29 additions & 25 deletions DOCUMENTATION/content/documentation/index.md
Expand Up @@ -1232,39 +1232,43 @@ A package ([Laravel RethinkDB](https://github.com/duxet/laravel-rethinkdb)) is b
## Use Minio

1. Configure Minio:
- On the workspace container, change `INSTALL_MC` to true to get the client
- Set `MINIO_ACCESS_KEY` and `MINIO_ACCESS_SECRET` if you wish to set proper keys
- You can change some settings in the `.env` file (`MINIO_*`)
- You can install Minio Client on the workspace container: `WORKSPACE_INSTALL_MC=true`

2. Run the Minio Container (`minio`) with the `docker-compose up` command. Example:
```bash
docker-compose up -d minio
```

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 Minio Client:
```bash
mc mb minio/bucket
```
5 - When configuring your other clients use the following details:
```
AWS_URL=http://minio:9000
AWS_ACCESS_KEY_ID=access
AWS_SECRET_ACCESS_KEY=secretkey
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=test
AWS_PATH_STYLE=true
```
6 - In `filesystems.php` you shoud use the following details (s3):
```
's3' => [
'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION'),
'bucket' => env('AWS_BUCKET'),
'endpoint' => env('AWS_URL'),
'use_path_style_endpoint' => env('AWS_PATH_STYLE', false)
],
```
`'AWS_PATH_STYLE'` shout set to true only for local purpouse
5. When configuring your other clients use the following details:
```
AWS_URL=http://minio:9000
AWS_ACCESS_KEY_ID=access
AWS_SECRET_ACCESS_KEY=secretkey
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=test
AWS_USE_PATH_STYLE_ENDPOINT=true
```

6. In `filesystems.php` you should use the following details (s3):
```php
's3' => [
'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION'),
'bucket' => env('AWS_BUCKET'),
'endpoint' => env('AWS_URL'),
'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false)
],
```

`AWS_USE_PATH_STYLE_ENDPOINT` should set to true only for local purpose



Expand Down

0 comments on commit 1c2f07c

Please sign in to comment.