-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.yaml
47 lines (45 loc) · 1.19 KB
/
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
services:
postgres:
image: kartoza/postgis:16-3.4
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=af-south-1
- AWS_S3_ENDPOINT=s3.af-south-1.amazonaws.com
- AWS_ACCESS_KEY_ID=fake_id
- AWS_SECRET_ACCESS_KEY=fake_key
- AWS_NO_SIGN_REQUEST=YES
- SPATIALITE_LIBRARY_PATH=mod_spatialite.so
volumes:
- .:/code
depends_on:
- postgres
command: ["/bin/sh", "-ec", "while :; do echo '.'; sleep 180 ; done"]
index:
image: opendatacube/datacube-index:0.3.1
environment:
- DB_HOSTNAME=postgres
- DB_USERNAME=postgres
- DB_PASSWORD=opendatacubepassword
- DB_DATABASE=postgres
- DB_PORT=5432
- AWS_DEFAULT_REGION=af-south-1
depends_on:
- postgres
entrypoint: bash -c 'sleep infinity'