-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
70 lines (62 loc) · 1.64 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3.7'
services:
# Start docker containers for Minio to mock S3
minio1:
image: minio/minio:RELEASE.2020-03-25T07-03-04Z
volumes:
- data1-1:/data1
- data1-2:/data2
ports:
- "9001:9000"
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: server http://minio{1...2}/data{1...2}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
minio2:
image: minio/minio:RELEASE.2020-03-25T07-03-04Z
volumes:
- data2-1:/data1
- data2-2:/data2
ports:
- "9002:9000"
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: server http://minio{1...2}/data{1...2}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
# Start docker container for PostgreSQL to mock RDS
dc-db:
image: postgres:11.5-alpine
ports:
- "5434:5432"
environment:
POSTGRES_PASSWORD: opendatacubepassword
restart: always
# Start docker container for Datacube-Index
dc-index:
image: datacube-index
# TODO: Pass Minio credentials
# TODO: Pass PostgreSQL credentials
environment:
- DB_HOSTNAME=dc-db
- DB_USERNAME=postgres
- DB_PASSWORD=opendatacubepassword
- DB_DATABASE=postgres
- DB_PORT=5432
- AWS_DEFAULT_REGION=ap-southeast-2
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
volumes:
data1-1:
data1-2:
data2-1:
data2-2: