-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
57 lines (56 loc) · 1.07 KB
/
docker-compose.yaml
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
49
50
51
52
53
54
55
56
57
version: "3.7"
services:
api:
build:
context: .
dockerfile: api.Dockerfile
env_file:
- .env
ports:
- "8000:8000"
depends_on:
- minio
- create-buckets
entrypoint: >
/bin/sh -c "
sleep 4;
api;
"
archiver:
build:
context: .
dockerfile: archiver.Dockerfile
env_file:
- .env
ports:
- "8001:8000"
depends_on:
- minio
- create-buckets
entrypoint: >
/bin/sh -c "
sleep 4;
archiver;
"
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 "
sleep 3;
/usr/bin/mc alias set minio http://minio:9000 admin password;
/usr/bin/mc mb minio/blobs;
/usr/bin/mc anonymous set public minio/blobs;
exit 0;
"