-
Notifications
You must be signed in to change notification settings - Fork 37
/
docker-compose.yaml
45 lines (45 loc) · 1.58 KB
/
docker-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
# Default compose will create an ows image, with dev settings and connect to a local db
services:
ows_18:
build:
context: .
args:
PYDEV_DEBUG: "${PYDEV_DEBUG}"
ENVIRONMENT: test
cache_from:
- opendatacube/ows_18:_builder
image: opendatacube/ows_18:latest
# Uncomment for use with non-dockerised postgres (for docker-compose 1.x)
# network_mode: host
environment:
LOCAL_UID: ${LOCAL_UID:-1000}
LOCAL_GID: ${LOCAL_GID:-1000}
# Defaults are defined in .env file
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_REQUEST_PAYER: ${AWS_REQUEST_PAYER}
AWS_S3_ENDPOINT: ${AWS_S3_ENDPOINT}
DB_HOSTNAME: ${DB_HOSTNAME}
DB_PORT: ${DB_PORT}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
DB_DATABASE: ${DB_DATABASE}
# Path from the PYTHONPATH to the config object (default PYTHONPATH is /src)
PYTHONPATH: ${PYTHONPATH}
DATACUBE_OWS_CFG: ${DATACUBE_OWS_CFG}
AWS_DEFAULT_REGION: ${AWS_REGION}
# Talk to AWS without using credentials
AWS_NO_SIGN_REQUEST: "${AWS_NO_SIGN_REQUEST}"
# Enable Metrics
prometheus_multiproc_dir: ${prometheus_multiproc_dir}
# Dev flags
FLASK_APP: /src/datacube_ows/ogc.py
FLASK_ENV: ${FLASK_ENV}
PYDEV_DEBUG: "${PYDEV_DEBUG}"
SENTRY_DSN: "${SENTRY_DSN}"
volumes:
- ${OWS_CFG_DIR}:${OWS_CFG_MOUNT_DIR}
- ./:/src/
- ./artifacts:/mnt/artifacts
restart: always
command: ["flask", "run", "--host=0.0.0.0", "--port=8000"]