-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.prod.yml
62 lines (59 loc) · 1.75 KB
/
docker-compose.prod.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
53
54
55
56
57
58
59
60
61
62
version: "3"
services:
app:
build:
context: .
args:
- ENV=dev
container_name: app_dev
restart: on-failure
volumes:
- $HOME/.aws:/root/.aws:ro
- ./app:/app/app
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- DB_HOST=database
- DATABASE=geostore
- DB_USER=gfw
- DB_PASSWORD=postgres # pragma: allowlist secret
- DB_PORT=5432
- DB_HOST_RO=database
- DATABASE_RO=geostore
- DB_USER_RO=gfw_readonly
- DB_PASSWORD_RO=readonly # pragma: allowlist secret
- DB_PORT_RO=5432
- AWS_DEFAULT_PROFILE=gfw-dev
- LOG_LEVEL=debug
- POSTGRESQL_CLIENT_JOB_DEFINITION=postgres_client_jd
- GDAL_PYTHON_JOB_DEFINITION=gdal_python_jd
- TILE_CACHE_JOB_DEFINITION=tile_cache_jd
- PIXETL_JOB_DEFINITION=pixetl_jd
- AURORA_JOB_QUEUE=aurora_jq
- AURORA_JOB_QUEUE_FAST=aurora_fast_jq
- DATA_LAKE_JOB_QUEUE=data_lake_jq
- TILE_CACHE_JOB_QUEUE=tile_cache_jq
- PIXETL_JOB_QUEUE=pixetl_jq
- ON_DEMAND_COMPUTE_JOB_QUEUE=cogify_jq
- RASTER_ANALYSIS_LAMBDA_NAME=raster_analysis
- API_URL="http://app_dev:80"
- RW_API_URL=https://api.resourcewatch.org
- GOOGLE_APPLICATION_CREDENTIALS=/root/.gcs/private_key.json
ports:
- 8000:80
entrypoint: wait_for_postgres.sh /app/start.sh
depends_on:
- database
database:
container_name: gfw-data-api-database
image: postgis/postgis:12-3.3-alpine
restart: on-failure
ports:
- 54320:5432
environment:
- POSTGRES_DB=geostore
- POSTGRES_USER=gfw
- POSTGRES_PASSWORD=postgres # pragma: allowlist secret
volumes:
- database_data:/var/lib/postgresql/data
volumes:
database_data: