From 2ac65c3fea9e46272bd87d45f80ee28470a20b70 Mon Sep 17 00:00:00 2001 From: Memo Chou Date: Sun, 11 Jul 2021 00:13:15 +0800 Subject: [PATCH 1/2] Add console port and fix environments for minio --- .env.example | 1 + docker-compose.yml | 7 ++++--- minio/Dockerfile | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index 13b7ae8a..7bb79109 100644 --- a/.env.example +++ b/.env.example @@ -486,6 +486,7 @@ SELENIUM_PORT=4444 ### MINIO ################################################# MINIO_PORT=9000 +MINIO_CONSOLE_PORT=9001 ### ADMINER ############################################### diff --git a/docker-compose.yml b/docker-compose.yml index f28bc4cf..0db74c91 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -468,9 +468,10 @@ services: - ${DATA_PATH_HOST}/minio/config:/root/.minio ports: - "${MINIO_PORT}:9000" + - "${MINIO_CONSOLE_PORT}:9001" environment: - - MINIO_ACCESS_KEY=access - - MINIO_SECRET_KEY=secretkey + - MINIO_ROOT_USER=access + - MINIO_ROOT_PASSWORD=secretkey networks: - frontend - backend @@ -2003,4 +2004,4 @@ services: ports: - ${TARANTOOL_ADMIN_PORT}:80 networks: - - backend \ No newline at end of file + - backend diff --git a/minio/Dockerfile b/minio/Dockerfile index f394fcf7..eea0b415 100644 --- a/minio/Dockerfile +++ b/minio/Dockerfile @@ -2,4 +2,4 @@ FROM minio/minio LABEL maintainer="Thor Erik Lie " -ENTRYPOINT ["minio", "server", "/export"] +ENTRYPOINT ["minio", "server", "--console-address", ":9001", "/export"] From 96e5e8220e965836c05a9b97793d048725cc08f9 Mon Sep 17 00:00:00 2001 From: Memo Chou Date: Sun, 11 Jul 2021 00:38:01 +0800 Subject: [PATCH 2/2] Use dotenv for env keys --- .env.example | 2 ++ docker-compose.yml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 7bb79109..a9ebec96 100644 --- a/.env.example +++ b/.env.example @@ -487,6 +487,8 @@ SELENIUM_PORT=4444 MINIO_PORT=9000 MINIO_CONSOLE_PORT=9001 +MINIO_ROOT_USER=laradock +MINIO_ROOT_PASSWORD=laradock ### ADMINER ############################################### diff --git a/docker-compose.yml b/docker-compose.yml index 0db74c91..1e4ea9f2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -470,8 +470,8 @@ services: - "${MINIO_PORT}:9000" - "${MINIO_CONSOLE_PORT}:9001" environment: - - MINIO_ROOT_USER=access - - MINIO_ROOT_PASSWORD=secretkey + - MINIO_ROOT_USER=${MINIO_ROOT_USER} + - MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD} networks: - frontend - backend