-
Notifications
You must be signed in to change notification settings - Fork 32
/
docker-compose.yml
52 lines (50 loc) · 1.25 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
---
services:
explorer:
build:
context: .
args:
ENVIRONMENT: deployment
ports:
- 80:8080
environment:
# - DB_HOSTNAME=host.docker.internal
- DB_HOSTNAME=postgres
- DB_USERNAME=opendatacube
- DB_PASSWORD=opendatacubepassword
- DB_DATABASE=opendatacube
- DB_PORT=5432
- FLASK_ENV=development
- FLASK_APP=cubedash
- FLASK_DEBUG=1
- CUBEDASH_DEFAULT_TIMEZONE=Australia/Darwin
# - VIRTUAL_HOST=datacube.explorer
depends_on:
- postgres
postgres:
image: postgis/postgis:16-3.4
hostname: postgres
environment:
- POSTGRES_DB=opendatacube
- POSTGRES_PASSWORD=opendatacubepassword
- POSTGRES_USER=opendatacube
ports:
- 5432:5432
restart: always
healthcheck:
test: ["CMD", "pg_isready", "-h", "postgres", "-q", "-d", "opendatacube", "-U", "opendatacube"]
timeout: 45s
interval: 10s
retries: 10
# Needed for testing HTTPS
# nginx-proxy:
# image: jwilder/nginx-proxy
# container_name: nginx-proxy
# ports:
# - "5000:80"
# - "443:443"
# volumes:
# - /var/run/docker.sock:/tmp/docker.sock:ro
# - ./certs:/etc/nginx/certs
# depends_on:
# - explorer