1- version : " 3 " 
1+ version : ' 3 ' 
22
33services :
4+ 
45  #  change to official image when available https://github.com/radiantearth/stac-browser/pull/386
56  stac-browser :
67    build :
@@ -12,7 +13,7 @@ services:
1213      - stac-fastapi 
1314      - titiler-pgstac 
1415      - database 
15- 
16+        
1617  stac-fastapi :
1718    #  Note:
1819    #  the official ghcr.io/stac-utils/stac-fastapi-pgstac image uses python 3.8 and uvicorn
@@ -30,11 +31,11 @@ services:
3031      - VARIABLE_NAME=app 
3132      #  gunicorn
3233      #  https://github.com/tiangolo/uvicorn-gunicorn-docker#web_concurrency
33-       - WEB_CONCURRENCY=1  
34+       - WEB_CONCURRENCY=10  
3435      #  https://github.com/tiangolo/uvicorn-gunicorn-docker#workers_per_core
35-       - WORKERS_PER_CORE=1 
36+       #   - WORKERS_PER_CORE=1
3637      #  https://github.com/tiangolo/uvicorn-gunicorn-docker#max_workers
37-       - MAX_WORKERS=10 
38+       #   - MAX_WORKERS=10
3839      #  Postgres connection
3940      - POSTGRES_USER=username 
4041      - POSTGRES_PASS=password 
@@ -44,16 +45,12 @@ services:
4445      - POSTGRES_PORT=5432 
4546      - DB_MIN_CONN_SIZE=1 
4647      - DB_MAX_CONN_SIZE=10 
47-       - KEYCLOAK_REALM=eoapi 
48-       - KEYCLOAK_HOST=http://localhost:8080 
49-       - KEYCLOAK_CLIENT_ID=stac-api 
50-       - KEYCLOAK_INTERNAL_HOST=http://keycloak:8080 
5148    depends_on :
5249      - database 
53-     command : bash -c "bash /tmp/scripts/wait-for-it.sh -t 120 -h database -p 5432 && /start-reload.sh" 
50+     command :
51+       bash -c "bash /tmp/scripts/wait-for-it.sh -t 120 -h database -p 5432 && /start.sh" 
5452    volumes :
5553      - ./dockerfiles/scripts:/tmp/scripts 
56-       - ./runtime/eoapi/stac:/app/stac 
5754
5855  titiler-pgstac :
5956    #  At the time of writing, rasterio and psycopg wheels are not available for arm64 arch
@@ -99,7 +96,8 @@ services:
9996      - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} 
10097    depends_on :
10198      - database 
102-     command : bash -c "bash /tmp/scripts/wait-for-it.sh -t 120 -h database -p 5432 && /start.sh" 
99+     command :
100+       bash -c "bash /tmp/scripts/wait-for-it.sh -t 120 -h database -p 5432 && /start.sh" 
103101    volumes :
104102      - ./dockerfiles/scripts:/tmp/scripts 
105103
@@ -112,11 +110,11 @@ services:
112110      - HOST=0.0.0.0 
113111      - PORT=8083 
114112      #  https://github.com/tiangolo/uvicorn-gunicorn-docker#web_concurrency
115-       - WEB_CONCURRENCY=1  
113+       - WEB_CONCURRENCY=10  
116114      #  https://github.com/tiangolo/uvicorn-gunicorn-docker#workers_per_core
117-       - WORKERS_PER_CORE=1 
115+       #   - WORKERS_PER_CORE=1
118116      #  https://github.com/tiangolo/uvicorn-gunicorn-docker#max_workers
119-       - MAX_WORKERS=10 
117+       #   - MAX_WORKERS=10
120118      #  Postgres connection
121119      - POSTGRES_USER=username 
122120      - POSTGRES_PASS=password 
@@ -125,7 +123,8 @@ services:
125123      - POSTGRES_PORT=5432 
126124      - DB_MIN_CONN_SIZE=1 
127125      - DB_MAX_CONN_SIZE=10 
128-     command : bash -c "bash /tmp/scripts/wait-for-it.sh -t 120 -h database -p 5432 && /start.sh" 
126+     command :
127+       bash -c "bash /tmp/scripts/wait-for-it.sh -t 120 -h database -p 5432 && /start.sh" 
129128    depends_on :
130129      - database 
131130    volumes :
0 commit comments