Skip to content

Commit c54ad51

Browse files
Minio Console Port (#188)
Added Added Minio console port. Default set to 8900 but subject to approval by the community. --- Fixes an issue where Minio show the following error in the logs and on opening localhost:9000 redirects to a random port. ``` WARNING: Console endpoint is listening on a dynamic port (41045), please use --console-address ":PORT" to choose a static port. ``` This PR allows one to access Minio dashboard on port 8900 and the API endpoint remains on port 9000. Example repo: https://github.com/SamuelMwangiW/sail-minio-example/
1 parent 94cd548 commit c54ad51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stubs/minio.stub

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
image: 'minio/minio:latest'
33
ports:
44
- '${FORWARD_MINIO_PORT:-9000}:9000'
5+
- '${FORWARD_MINIO_CONSOLE_PORT:-8900}:8900'
56
environment:
67
MINIO_ROOT_USER: 'sail'
78
MINIO_ROOT_PASSWORD: 'password'
89
volumes:
910
- 'sailminio:/data/minio'
1011
networks:
1112
- sail
12-
command: minio server /data/minio
13+
command: minio server /data/minio --console-address ":8900"
1314
healthcheck:
1415
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
1516
retries: 3

0 commit comments

Comments
 (0)