diff --git a/.env.common b/.env.common index 5d5040d..ed924e3 100644 --- a/.env.common +++ b/.env.common @@ -2,7 +2,9 @@ AWS_ACCESS_KEY_ID=minio_access_key AWS_SECRET_ACCESS_KEY=minio_secret_key MINIO_BUCKET=minio-bucket MINIO_PORT=9000 +EXTERNAL_MINIO_PORT=${MINIO_PORT} MINIO_WEB_PORT=9001 +EXTERNAL_MINIO_WEB_PORT=${MINIO_WEB_PORT} ANY_SYNC_NODE_VERSION=prod ANY_SYNC_FILENODE_VERSION=prod diff --git a/docker-compose.yml b/docker-compose.yml index eeb397c..d1b7eeb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -57,17 +57,17 @@ services: minio: image: "minio/minio:${MINIO_VERSION}" restart: always - command: server /data --console-address ":9001" + command: server /data --console-address ":${MINIO_WEB_PORT}" --address ":${MINIO_PORT}" environment: MINIO_ROOT_USER: "${AWS_ACCESS_KEY_ID}" MINIO_ROOT_PASSWORD: "${AWS_SECRET_ACCESS_KEY}" ports: - - "${MINIO_PORT}:9000" - - "${MINIO_WEB_PORT}:9001" + - "${EXTERNAL_MINIO_PORT}:${MINIO_PORT}" + - "${EXTERNAL_MINIO_WEB_PORT}:${MINIO_WEB_PORT}" volumes: - ./storage/minio:/data healthcheck: - test: bash -c ':> /dev/tcp/127.0.0.1/9000' || exit 1 + test: bash -c ':> /dev/tcp/127.0.0.1/${MINIO_PORT}' || exit 1 interval: 5s timeout: 10s retries: 3