Skip to content

Commit f81435d

Browse files
committed
add titiler-gunicorn in docker-compose
1 parent e1feb41 commit f81435d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docker-compose.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ services:
99
ports:
1010
- "8000:8000"
1111
command: ["uvicorn", "titiler.application.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1"]
12-
# Or Using Gunicorn
13-
# command: ["gunicorn", "-k", "uvicorn.workers.UvicornWorker", "titiler.application.main:app", "--bind", "0.0.0.0:8000", "--workers", "1"]
1412
environment:
1513
# GDAL config
1614
- CPL_TMPDIR=/tmp
@@ -40,6 +38,13 @@ services:
4038
# rio-tiler config
4139
# - RIO_TILER_MAX_THREADS=
4240

41+
titiler-gunicorn:
42+
extends:
43+
service: titiler
44+
ports:
45+
- "8000:8000"
46+
command: ["gunicorn", "-k", "uvicorn.workers.UvicornWorker", "titiler.application.main:app", "--bind", "0.0.0.0:8000", "--workers", "1"]
47+
4348
benchmark:
4449
extends:
4550
service: titiler

0 commit comments

Comments
 (0)