development branch created to preserve working deploy project

This commit is contained in:
2025-08-02 17:37:16 +03:00
parent 5e65ea0f7c
commit e824e87953
659 changed files with 90008 additions and 137 deletions
+9 -12
View File
@@ -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