Skip to content

Commit a5de3f9

Browse files
yelizarievtrojikman
authored andcommitted
📖 update minio instructions
previous setup didn't allow to read obj_url from docker
1 parent 19cd867 commit a5de3f9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

ir_attachment_s3/README.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ To install local minio add following specification to your docker-compose.yml::
4141

4242
# ...
4343

44-
s3:
44+
minio:
4545
image: minio/minio
4646
networks: *public # for doodba
4747
ports:
@@ -60,6 +60,10 @@ To install local minio add following specification to your docker-compose.yml::
6060

6161
s3:
6262

63+
Add to your ``/etc/hosts`` file::
64+
65+
127.0.0.1 minio
66+
6367
Now make minio publicly accessable:
6468

6569
* `install minio client <https://docs.min.io/docs/minio-client-complete-guide.html>`__, e.g.
@@ -68,7 +72,7 @@ Now make minio publicly accessable:
6872
chmod +x mc
6973
* create *alias*
7074
::
71-
./mc alias set local http://127.0.0.1:9000 admin password
75+
./mc alias set local http://minio:9000 admin password
7276
* create bucket
7377
::
7478
./mc mb local/mybucket
@@ -82,8 +86,8 @@ Then set parameters:
8286
* ``s3.bucket``: ``mybucket``
8387
* ``s3.access_key_id``: ``admin``
8488
* ``s3.secret_key``: ``password``
85-
* ``s3.endpoint_url``: ``http://s3:9000``
86-
* ``s3.obj_url``: ``http://localhost:9000/mybucket/``
89+
* ``s3.endpoint_url``: ``http://minio:9000``
90+
* ``s3.obj_url``: ``http://minio:9000/mybucket/``
8791

8892
Questions?
8993
==========

0 commit comments

Comments
 (0)