forked from base-org/blob-archiver
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
48 lines (47 loc) · 957 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: "3.7"
services:
api:
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
ports:
- "8000:8000"
command:
- "blob-api"
depends_on:
- minio
- create-buckets
archiver:
build:
context: .
dockerfile: Dockerfile
command:
- "blob-archiver"
env_file:
- .env
depends_on:
- minio
- create-buckets
minio:
restart: unless-stopped
image: minio/minio:latest
ports:
- "9000:9000"
- "9999:9999"
environment:
MINIO_ROOT_USER: admin
MINIO_ROOT_PASSWORD: password
entrypoint: minio server /data --console-address ":9999"
create-buckets:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set minio http://minio:9000 admin password;
/usr/bin/mc mb minio/blobs;
/usr/bin/mc policy set public minio/blobs;
exit 0;
"