-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
34 lines (33 loc) · 1012 Bytes
/
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
version: "3"
services:
dynamodb:
image: amazon/dynamodb-local:latest
ports:
- "8880:8000"
command: "-jar DynamoDBLocal.jar -sharedDb"
minio:
image: minio/minio:latest
environment: &minio-vars
MINIO_ROOT_USER: root
MINIO_ROOT_PASSWORD: password
command: server --console-address ":9001" /data
ports:
- "9000:9000"
- "9001:9001"
createbuckets:
image: minio/mc:latest
depends_on:
- minio
environment:
<<: *minio-vars
INTERTUBE_UPLOADS_BUCKET: intertube-uploads
INTERTUBE_FILES_BUCKET: intertube
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set storage http://minio:9000 $${MINIO_ROOT_USER} $${MINIO_ROOT_PASSWORD};
/usr/bin/mc mb storage/$${INTERTUBE_UPLOADS_BUCKET};
/usr/bin/mc policy set public storage/$${INTERTUBE_UPLOADS_BUCKET};
/usr/bin/mc mb storage/$${INTERTUBE_FILES_BUCKET};
/usr/bin/mc policy set public storage/$${INTERTUBE_FILES_BUCKET};
exit 0;
"