Skip to content

Commit 6fe0767

Browse files
Merge pull request #1819 from exogee-technology/chore/minio-doc-update
Updating minio example docs
2 parents b4a3802 + f9ccd7d commit 6fe0767

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/examples/s3-storage/README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,25 @@ For running locally it is handy to have a local S3 env. For this we recommend ru
88

99
** An alternative option is to use Localstack, see details below **
1010

11-
Once Minio is installed and start the server with the following command:
11+
Once Minio is installed you can start the server with the following command:
1212

13-
`minio server ~/data --address :9003`
13+
`MINIO_ROOT_USER=root MINIO_ROOT_PASSWORD=<choose a password> minio server ~/data --address :9003 --console-address :50003`
1414

1515
Create a new bucket here:
1616

17-
[http://127.0.0.1:54902/browser/add-bucket](http://127.0.0.1:54902/browser/add-bucket)
17+
[http://127.0.0.1:50003/browser/add-bucket](http://127.0.0.1:50003/browser/add-bucket)
1818

1919
Update the env variable `AWS_S3_BUCKET` with the new bucket name.
2020

21-
Lastly, you need to create a user and access id / secret:
21+
Lastly, you need to create a user and access id / secret. This requires using the `mc` CLI tool to access the API. Configure the client to talk to the API with a `local` alias:
2222

23-
[http://127.0.0.1:54902/identity/users](http://127.0.0.1:54902/identity/users)
23+
`mc alias set local http://192.168.0.180:9003 root <your root password>`
2424

25-
Save these values to the `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` env vars.
25+
You then need to create the API key to access the bucket:
26+
27+
`mc admin accesskey create local`
28+
29+
This will generate the key that you need. Save these values to the `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` env vars.
2630

2731
To run the example make sure that you have a local PostgreSQL database and that you seed the database as below.
2832

0 commit comments

Comments
 (0)