File tree 2 files changed +42
-4
lines changed 2 files changed +42
-4
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,12 @@ services:
32
32
- DEBUG=true
33
33
- SMTP_PORT=1025
34
34
- SMTP_HOST=mailserver
35
- - AWS_ENDPOINT=http://minio:9000
36
- - S3_PUBLIC_GATEWAY=http://localhost:9000
35
+ - AWS_ACCESS_KEY_ID=h6uWJf7Earij3143YBV7
36
+ - AWS_SECRET_ACCESS_KEY=or9ZWh34BmAIqzIbJL5QpeTrey5ChGirH0mmyMdn
37
+ - AWS_ENDPOINT=http:/minio:9000
38
+ - AWS_REGION=local
39
+ - AWS_BUCKET=ocelot
40
+ - S3_PUBLIC_GATEWAY=http:/localhost:9000
37
41
volumes :
38
42
- ./backend:/app
39
43
@@ -57,9 +61,24 @@ services:
57
61
volumes :
58
62
- minio_data:/data
59
63
environment :
60
- - MINIO_ROOT_USER=AKIAIOSFODNN7EXAMPLE
61
- - MINIO_ROOT_PASSWORD=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
64
+ - MINIO_ROOT_USER=h6uWJf7Earij3143YBV7
65
+ - MINIO_ROOT_PASSWORD=or9ZWh34BmAIqzIbJL5QpeTrey5ChGirH0mmyMdn
62
66
command : server /data --console-address ":9001"
63
67
68
+ minio-mc :
69
+ image : quay.io/minio/mc
70
+ depends_on :
71
+ - minio
72
+ restart : on-failure
73
+ volumes :
74
+ - ./minio/readonly-policy.json:/tmp/readonly-policy.json
75
+ entrypoint : >
76
+ /bin/sh -c "
77
+ sleep 5;
78
+ /usr/bin/mc alias set dockerminio http://minio:9000 h6uWJf7Earij3143YBV7 or9ZWh34BmAIqzIbJL5QpeTrey5ChGirH0mmyMdn;
79
+ /usr/bin/mc mb --ignore-existing dockerminio/ocelot;
80
+ /usr/bin/mc anonymous set-json /tmp/readonly-policy.json dockerminio/ocelot;
81
+ "
82
+
64
83
volumes :
65
84
minio_data :
Original file line number Diff line number Diff line change
1
+ {
2
+ "Version" : " 2012-10-17" ,
3
+ "Statement" : [
4
+ {
5
+ "Effect" : " Allow" ,
6
+ "Principal" : {
7
+ "AWS" : [
8
+ " *"
9
+ ]
10
+ },
11
+ "Action" : [
12
+ " s3:GetObject"
13
+ ],
14
+ "Resource" : [
15
+ " arn:aws:s3:::ocelot/*"
16
+ ]
17
+ }
18
+ ]
19
+ }
You can’t perform that action at this time.
0 commit comments