-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
40 lines (36 loc) · 1.01 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: "3.5"
services:
s3proxy:
image: ${S3PROXY_IMAGE}
depends_on:
- createbuckets
ports:
- 9080:9080
environment:
- "AWS_REGION=eu-west-1"
- "S3PROXY_HTTP_PORT=9080"
- "S3PROXY_USE_MINIO=localhost:9000"
- "S3PROXY_MINIO_ACCESS_KEY=AKIAIOSFODNN7EXAMPLE"
- "S3PROXY_MINIO_SECRET_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
command: s3proxy
minio:
image: minio/minio
ports:
- 9000:9000
environment:
- "MINIO_ACCESS_KEY=AKIAIOSFODNN7EXAMPLE"
- "MINIO_SECRET_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
command: server /export
createbuckets:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/bin/sleep 5;
/usr/bin/mc config host add myminio http://minio:9000 AKIAIOSFODNN7EXAMPLE wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY;
/usr/bin/mc rm -r --force myminio/test;
/usr/bin/mc mb myminio/test;
/usr/bin/mc policy download myminio/test;
exit 0;
"