Skip to content

Commit

Permalink
Merge pull request #81 from anyproto/improved-bucket-creation
Browse files Browse the repository at this point in the history
Improved bucket creation
  • Loading branch information
mighty-sponge authored Jul 10, 2024
2 parents 1a3e82e + 2386588 commit ddf4f9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .env.common
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ANY_SYNC_TOOLS_VERSION=latest

MONGO_VERSION=7.0.2
REDIS_VERSION=7.2.0-v6
MINIO_VERSION=RELEASE.2024-01-16T16-07-38Z
MINIO_VERSION=RELEASE.2024-07-04T14-25-45Z

EXTERNAL_LISTEN_HOST="127.0.0.1"
#EXTERNAL_LISTEN_HOSTS="192.168.1.2"
Expand Down
10 changes: 6 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,14 @@ services:

create-bucket:
image: minio/mc:latest
environment:
MC_HOST_minio: http://${AWS_ACCESS_KEY_ID}:${AWS_SECRET_ACCESS_KEY}@minio:${MINIO_PORT}
restart: "no"
depends_on:
- minio
entrypoint: ["mc", "mb", "minio/${MINIO_BUCKET}"]
entrypoint: >
/bin/sh -c "
until (/usr/bin/mc alias set minio http://minio:${MINIO_PORT} '${AWS_ACCESS_KEY_ID}' '${AWS_SECRET_ACCESS_KEY}') do echo '...waiting...' && sleep 1; done;
/usr/bin/mc mb minio/${MINIO_BUCKET};
exit 0;
"
any-sync-coordinator_bootstrap:
image: "ghcr.io/anyproto/any-sync-coordinator:${ANY_SYNC_COORDINATOR_VERSION}"
Expand Down

0 comments on commit ddf4f9b

Please sign in to comment.