-
Notifications
You must be signed in to change notification settings - Fork 83
/
docker-compose.yml
40 lines (40 loc) · 1.42 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'
services:
minio:
image: minio/minio:RELEASE.2022-07-15T03-44-22Z
environment:
MINIO_ACCESS_KEY: AKIAIOSFODNN7EXAMPLE
MINIO_SECRET_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
MINIO_REGION: eu-west-1
ports:
- 9000:9000
command: server /data
fake-gcs:
image: fsouza/fake-gcs-server:1.38.3
ports:
- 4443:4443
command: -public-host localhost -scheme http
sftp:
image: atmoz/sftp:alpine
ports:
- "22:22"
command: foo:pass:::sftp_test bar:pass:::plugin_test
azurite:
image: mcr.microsoft.com/azure-storage/azurite:3.18.0
ports:
- "10000:10000"
command: azurite-blob --blobHost 0.0.0.0
configure-buckets:
image: minio/mc:RELEASE.2022-07-11T16-16-12Z
entrypoint: sh
depends_on:
- minio
command:
- -c
- |
sleep 2 &&
mc config host add minio http://minio:9000 AKIAIOSFODNN7EXAMPLE wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY &&
mc admin user add minio foo barbarbar &&
echo '{"Version": "2012-10-17", "Statement": [{"Action": ["s3:GetObject", "s3:PutObject", "s3:DeleteObject", "s3:CreateBucket", "s3:DeleteBucket"], "Effect": "Allow", "Resource": ["arn:aws:s3:::s3-round-trip-with-role/*", "arn:aws:s3:::s3-round-trip-with-role"], "Sid": ""}]}' > /tmp/policy.json &&
mc admin policy add minio userpolicy /tmp/policy.json &&
mc admin policy set minio userpolicy user=foo