forked from sagecontinuum/sage-storage-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
56 lines (46 loc) · 1.13 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
version: '3.7'
services:
sage-api:
image: sagecontinuum/sage-storage-api:latest
build:
context: .
dockerfile: Dockerfile
depends_on:
- minio
- db
ports:
- "8080:8080"
env_file: mysql.env
environment:
TESTING_NOAUTH: ${TESTING_NOAUTH}
s3Endpoint: ${s3Endpoint}
s3accessKeyID: ${s3accessKeyID}
s3secretAccessKey: ${s3secretAccessKey}
s3bucket: ${s3bucket}
tokenInfoEndpoint: ${tokenInfoEndpoint}
tokenInfoUser: ${tokenInfoUser}
tokenInfoPassword: ${tokenInfoPassword}
minio:
image: minio/minio:latest
volumes:
- sage-data:/data
ports:
- "9001:9000"
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: server /data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
db:
image: mysql:8
env_file: mysql.env
volumes:
- ${PWD}/init.sql:/docker-entrypoint-initdb.d/init.sql
- stage-storage-db:/var/lib/mysql
volumes:
sage-data:
stage-storage-db: