Skip to content

Commit

Permalink
Merge pull request #42 from anyproto/37-create-bucket-unable-to-creat…
Browse files Browse the repository at this point in the history
…e-minio-bucket

added EXTERNAL_MINIO_PORT and EXTERNAL_MINIO_WEB_PORT
  • Loading branch information
fb929 authored Apr 26, 2024
2 parents 79ff5d8 + 9888da2 commit 4a10253
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .env.common
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a10253

Please sign in to comment.