Skip to content

Commit 59362dd

Browse files
committed
sketch custom tiler
1 parent 856dd52 commit 59362dd

File tree

3 files changed

+420
-1
lines changed

3 files changed

+420
-1
lines changed

docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ services:
4040
ports:
4141
- "8001:8001"
4242
titiler:
43-
image: ghcr.io/developmentseed/titiler:latest
43+
build:
44+
context: .
45+
dockerfile: tiler/Dockerfile
46+
command: ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1"]
4447
container_name: titiler
4548
platform: linux/amd64
4649
environment:

tiler/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM ghcr.io/developmentseed/titiler:latest
2+
3+
COPY tiler/app.py app.py
4+
5+
ENV MODULE_NAME=app
6+
ENV VARIABLE_NAME=app
7+
ENV HOST=0.0.0.0
8+
ENV PORT=80
9+
ENV WEB_CONCURRENCY=1
10+
CMD gunicorn -k uvicorn.workers.UvicornWorker ${MODULE_NAME}:${VARIABLE_NAME} --bind ${HOST}:${PORT} --workers ${WEB_CONCURRENCY}

0 commit comments

Comments
 (0)