mirror of
https://github.com/anyproto/any-sync-dockercompose.git
synced 2025-06-08 05:47:03 +09:00
Merge pull request #42 from anyproto/37-create-bucket-unable-to-create-minio-bucket
added EXTERNAL_MINIO_PORT and EXTERNAL_MINIO_WEB_PORT
This commit is contained in:
commit
4a102533c3
2 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue