-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
47 lines (44 loc) · 1.11 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
version: "3.6"
services:
postgres:
image: postgres:11.5-alpine
ports:
- "5434:5432"
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=opendatacubepassword
- POSTGRES_USER=postgres
expose:
- 5432
restart: always
waterbodies:
build:
context: .
args:
- ENVIRONMENT=dev
environment:
- DB_HOSTNAME=postgres
- DB_USERNAME=postgres
- DB_PASSWORD=opendatacubepassword
- DB_DATABASE=postgres
- AWS_DEFAULT_REGION=ap-southeast-2
- AWS_ACCESS_KEY_ID=fake_id
- AWS_SECRET_ACCESS_KEY=fake_key
- AWS_NO_SIGN_REQUEST=YES
volumes:
- .:/code
depends_on:
- postgres
command: ["/bin/sh", "-ec", "while :; do echo '.'; sleep 180 ; done"]
index:
image: opendatacube/datacube-index:0.0.13
environment:
- DB_HOSTNAME=postgres
- DB_USERNAME=postgres
- DB_PASSWORD=opendatacubepassword
- DB_DATABASE=postgres
- DB_PORT=5432
- AWS_DEFAULT_REGION=ap-southeast-2
depends_on:
- postgres
entrypoint: bash -c 'sleep infinity'