1
0
Fork 0
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:
Kirill Shklyaev 2024-07-10 14:36:41 +03:00
parent 64ca0e9088
commit 2386588196

View file

@ -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}"