mirror of
https://github.com/anyproto/any-sync-dockercompose.git
synced 2025-06-08 05:47:03 +09:00
improving minio bucket creation
This commit is contained in:
parent
64ca0e9088
commit
2386588196
1 changed files with 6 additions and 4 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue