Skip to content

Commit 2e2e0d6

Browse files
committed
Move titiler config to deploy/vbos/docker-compose.yml
Also change port mapping from 8002:8000 to 8000:80.
1 parent 06bb5fa commit 2e2e0d6

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

deploy/vbos/docker-compose.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,26 @@ services:
3131
caddy.handle: "/static/*"
3232
caddy.handle.root: "* /www/html"
3333
caddy.handle.file_server:
34+
titiler:
35+
image: ghcr.io/developmentseed/titiler:latest
36+
container_name: titiler
37+
platform: linux/amd64
38+
environment:
39+
CPL_TMPDIR: /tmp
40+
GDAL_CACHEMAX: 75%
41+
VSI_CACHE: TRUE
42+
VSI_CACHE_SIZE: 1073741824
43+
GDAL_DISABLE_READDIR_ON_OPEN: EMPTY_DIR
44+
GDAL_HTTP_MERGE_CONSECUTIVE_RANGES: YES
45+
GDAL_HTTP_MULTIPLEX: YES
46+
GDAL_HTTP_VERSION: 2
47+
PYTHONWARNINGS: ignore
48+
WEB_CONCURRENCY: 4
49+
ports:
50+
- "8000:80"
51+
volumes:
52+
- ./data:/data # Optional: mount local directory with your raster files
53+
restart: unless-stopped
3454

3555
networks:
3656
caddy:

docker-compose.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,3 @@ services:
3939
- ./:/code
4040
ports:
4141
- "8001:8001"
42-
titiler:
43-
image: ghcr.io/developmentseed/titiler:latest
44-
container_name: titiler
45-
platform: linux/amd64
46-
environment:
47-
CPL_TMPDIR: /tmp
48-
GDAL_CACHEMAX: 75%
49-
VSI_CACHE: TRUE
50-
VSI_CACHE_SIZE: 1073741824
51-
GDAL_DISABLE_READDIR_ON_OPEN: EMPTY_DIR
52-
GDAL_HTTP_MERGE_CONSECUTIVE_RANGES: YES
53-
GDAL_HTTP_MULTIPLEX: YES
54-
GDAL_HTTP_VERSION: 2
55-
PYTHONWARNINGS: ignore
56-
WEB_CONCURRENCY: 4
57-
ports:
58-
- "8002:8000"
59-
volumes:
60-
- ./data:/data # Optional: mount local directory with your raster files
61-
restart: unless-stopped

0 commit comments

Comments
 (0)