development branch created to preserve working deploy project
This commit is contained in:
+9
-12
@@ -47,18 +47,15 @@ services:
|
||||
image: minio/mc
|
||||
depends_on:
|
||||
- minio
|
||||
entrypoint: >
|
||||
/bin/sh -c "
|
||||
sleep 10;
|
||||
mc alias set myminio http://minio:9000 kikimor shushunka1;
|
||||
mc mb myminio/damages;
|
||||
mc anonymous set download myminio/damages;
|
||||
mc policy set public myminio/damages;
|
||||
echo '{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"AWS\":[\"*\"]},\"Action\":[\"s3:GetObject\"],\"Resource\":[\"arn:aws:s3:::damages/*\"]}]}' > /tmp/policy.json;
|
||||
mc admin policy add myminio getonly /tmp/policy.json;
|
||||
mc admin policy set myminio getonly user=kikimor;
|
||||
exit 0;
|
||||
"
|
||||
entrypoint: ["/bin/sh", "-c"]
|
||||
command: |
|
||||
sleep 10 &&
|
||||
mc alias set myminio http://minio:9000 kikimor shushunka1 &&
|
||||
mc mb myminio/damages --ignore-existing &&
|
||||
mc policy set download myminio/damages &&
|
||||
mc mb myminio/static --ignore-existing &&
|
||||
mc policy set download myminio/static &&
|
||||
echo "Buckets created and policies set successfully"
|
||||
networks:
|
||||
- app-network
|
||||
|
||||
|
||||
Reference in New Issue
Block a user