mirror of
https://github.com/anyproto/any-sync-dockercompose.git
synced 2025-06-08 05:47:03 +09:00
Merge pull request #81 from anyproto/improved-bucket-creation
Improved bucket creation
This commit is contained in:
commit
ddf4f9b9cc
2 changed files with 7 additions and 5 deletions
|
@ -14,7 +14,7 @@ ANY_SYNC_TOOLS_VERSION=latest
|
||||||
|
|
||||||
MONGO_VERSION=7.0.2
|
MONGO_VERSION=7.0.2
|
||||||
REDIS_VERSION=7.2.0-v6
|
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_HOST="127.0.0.1"
|
||||||
#EXTERNAL_LISTEN_HOSTS="192.168.1.2"
|
#EXTERNAL_LISTEN_HOSTS="192.168.1.2"
|
||||||
|
|
|
@ -78,12 +78,14 @@ services:
|
||||||
|
|
||||||
create-bucket:
|
create-bucket:
|
||||||
image: minio/mc:latest
|
image: minio/mc:latest
|
||||||
environment:
|
|
||||||
MC_HOST_minio: http://${AWS_ACCESS_KEY_ID}:${AWS_SECRET_ACCESS_KEY}@minio:${MINIO_PORT}
|
|
||||||
restart: "no"
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- minio
|
- 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:
|
any-sync-coordinator_bootstrap:
|
||||||
image: "ghcr.io/anyproto/any-sync-coordinator:${ANY_SYNC_COORDINATOR_VERSION}"
|
image: "ghcr.io/anyproto/any-sync-coordinator:${ANY_SYNC_COORDINATOR_VERSION}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue