forked from NASA-IMPACT/titiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
116 lines (111 loc) · 3.7 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
version: '3'
services:
titiler:
# See https://github.com/developmentseed/titiler/discussions/387
platform: linux/amd64
build:
context: .
dockerfile: dockerfiles/Dockerfile.gunicorn
ports:
- "8000:8000"
environment:
# Application
- HOST=0.0.0.0
- PORT=8000
# Gunicorn / Uvicorn
# https://github.com/tiangolo/uvicorn-gunicorn-docker#web_concurrency
- WEB_CONCURRENCY=1
# https://github.com/tiangolo/uvicorn-gunicorn-docker#workers_per_core
- WORKERS_PER_CORE=1
# GDAL config
- CPL_TMPDIR=/tmp
- GDAL_CACHEMAX=75%
- GDAL_INGESTED_BYTES_AT_OPEN=32768
- GDAL_DISABLE_READDIR_ON_OPEN=EMPTY_DIR
- GDAL_HTTP_MERGE_CONSECUTIVE_RANGES=YES
- GDAL_HTTP_MULTIPLEX=YES
- GDAL_HTTP_VERSION=2
- PYTHONWARNINGS=ignore
- VSI_CACHE=TRUE
- VSI_CACHE_SIZE=536870912
- AWS_REQUEST_PAYER=requester
# GDAL VSI Config
# https://gdal.org/user/virtual_file_systems.html#vsis3-aws-s3-files
# https://gdal.org/user/virtual_file_systems.html#vsigs-google-cloud-storage-files
# https://gdal.org/user/virtual_file_systems.html#vsiaz-microsoft-azure-blob-files
# - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
# - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
# TiTiler config
# - TITILER_API_DISABLE_STAC=TRUE/FALSE
# - TITILER_API_DISABLE_MOSAIC=TRUE/FALSE
# - TITILER_API_DISABLE_COG=TRUE/FALSE
# - TITILER_API_CORS_ORIGIN=url.io,url.xyz
# - TITILER_API_CACHECONTROL=public, max-age=3600
# - TITILER_API_DEBUG=TRUE/FALSE
# - MOSAIC_CONCURRENCY= # will default to `RIO_TILER_MAX_THREADS`
# rio-tiler config
# - RIO_TILER_MAX_THREADS=
titiler-uvicorn:
# See https://github.com/developmentseed/titiler/discussions/387
platform: linux/amd64
build:
context: .
dockerfile: dockerfiles/Dockerfile.uvicorn
ports:
- "8000:8000"
environment:
# Application
- HOST=0.0.0.0
- PORT=8000
# Uvicorn
# http://www.uvicorn.org/settings/#production
- WEB_CONCURRENCY=1
# GDAL config
- CPL_TMPDIR=/tmp
- GDAL_CACHEMAX=75%
- GDAL_INGESTED_BYTES_AT_OPEN=32768
- GDAL_DISABLE_READDIR_ON_OPEN=EMPTY_DIR
- GDAL_HTTP_MERGE_CONSECUTIVE_RANGES=YES
- GDAL_HTTP_MULTIPLEX=YES
- GDAL_HTTP_VERSION=2
- PYTHONWARNINGS=ignore
- VSI_CACHE=TRUE
- VSI_CACHE_SIZE=536870912
# GDAL VSI Config
# https://gdal.org/user/virtual_file_systems.html#vsis3-aws-s3-files
# https://gdal.org/user/virtual_file_systems.html#vsigs-google-cloud-storage-files
# https://gdal.org/user/virtual_file_systems.html#vsiaz-microsoft-azure-blob-files
# - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
# - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
# TiTiler config
# - TITILER_API_DISABLE_STAC=TRUE/FALSE
# - TITILER_API_DISABLE_MOSAIC=TRUE/FALSE
# - TITILER_API_DISABLE_COG=TRUE/FALSE
# - TITILER_API_CORS_ORIGIN=url.io,url.xyz
# - TITILER_API_CACHECONTROL=public, max-age=3600
# - TITILER_API_DEBUG=TRUE/FALSE
# - MOSAIC_CONCURRENCY= # will default to `RIO_TILER_MAX_THREADS`
# rio-tiler config
# - RIO_TILER_MAX_THREADS=
benchmark:
extends:
service: titiler-uvicorn
volumes:
- ./.github/data:/data
nginx-titiler:
extends:
service: titiler
ports:
- 8081:8081
environment:
- PORT=8081
- TITILER_API_ROOT_PATH=/api/v1/titiler
nginx:
image: nginx
ports:
- 80:80
volumes:
- ./dockerfiles/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- nginx-titiler
command: ["nginx-debug", "-g", "daemon off;"]