-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-snap.yml
45 lines (42 loc) · 1.21 KB
/
docker-compose-snap.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
---
version: "3.7"
services:
eo_tools_snap:
container_name: eo_tools_snap
build:
context: .
dockerfile: Dockerfile.snap
environment:
PYTHONPATH: /eo_tools
volumes:
- ${HOME}/eo_tools:/eo_tools
- ${HOME}/data:/data
# Overrides default command so things don't shut down after the process ends.
command: /bin/sh -c "while sleep 1000; do :; done"
network_mode: host
titiler:
image: ghcr.io/developmentseed/titiler:latest
environment:
# Application
- HOST=127.0.0.1
- PORT=8085
# 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
- LOG_LEVEL="debug"
volumes:
- ${HOME}/data:/data
network_mode: host