forked from opendatacube/datacube-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (45 loc) · 1.14 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.4"
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
# - VIRTUAL_HOST=datacube.explorer
command: gunicorn -b '0.0.0.0:8080' -w 1 '--worker-class=egg:meinheld#gunicorn_worker' --timeout 60 cubedash:app
depends_on:
- postgres
postgres:
image: kartoza/postgis:11.0-2.5
environment:
- POSTGRES_DB=opendatacube
- POSTGRES_PASSWORD=opendatacubepassword
- POSTGRES_USER=opendatacube
ports:
- 5432:5432
restart: always
# 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