1
- version : " 3 "
1
+ version : ' 3 '
2
2
3
3
services :
4
+
4
5
# change to official image when available https://github.com/radiantearth/stac-browser/pull/386
5
6
stac-browser :
6
7
build :
@@ -12,7 +13,7 @@ services:
12
13
- stac-fastapi
13
14
- titiler-pgstac
14
15
- database
15
-
16
+
16
17
stac-fastapi :
17
18
# Note:
18
19
# the official ghcr.io/stac-utils/stac-fastapi-pgstac image uses python 3.8 and uvicorn
@@ -30,11 +31,11 @@ services:
30
31
- VARIABLE_NAME=app
31
32
# gunicorn
32
33
# https://github.com/tiangolo/uvicorn-gunicorn-docker#web_concurrency
33
- - WEB_CONCURRENCY=1
34
+ - WEB_CONCURRENCY=10
34
35
# https://github.com/tiangolo/uvicorn-gunicorn-docker#workers_per_core
35
- - WORKERS_PER_CORE=1
36
+ # - WORKERS_PER_CORE=1
36
37
# https://github.com/tiangolo/uvicorn-gunicorn-docker#max_workers
37
- - MAX_WORKERS=10
38
+ # - MAX_WORKERS=10
38
39
# Postgres connection
39
40
- POSTGRES_USER=username
40
41
- POSTGRES_PASS=password
@@ -44,16 +45,12 @@ services:
44
45
- POSTGRES_PORT=5432
45
46
- DB_MIN_CONN_SIZE=1
46
47
- 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
51
48
depends_on :
52
49
- 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"
54
52
volumes :
55
53
- ./dockerfiles/scripts:/tmp/scripts
56
- - ./runtime/eoapi/stac:/app/stac
57
54
58
55
titiler-pgstac :
59
56
# At the time of writing, rasterio and psycopg wheels are not available for arm64 arch
@@ -99,7 +96,8 @@ services:
99
96
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
100
97
depends_on :
101
98
- 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"
103
101
volumes :
104
102
- ./dockerfiles/scripts:/tmp/scripts
105
103
@@ -112,11 +110,11 @@ services:
112
110
- HOST=0.0.0.0
113
111
- PORT=8083
114
112
# https://github.com/tiangolo/uvicorn-gunicorn-docker#web_concurrency
115
- - WEB_CONCURRENCY=1
113
+ - WEB_CONCURRENCY=10
116
114
# https://github.com/tiangolo/uvicorn-gunicorn-docker#workers_per_core
117
- - WORKERS_PER_CORE=1
115
+ # - WORKERS_PER_CORE=1
118
116
# https://github.com/tiangolo/uvicorn-gunicorn-docker#max_workers
119
- - MAX_WORKERS=10
117
+ # - MAX_WORKERS=10
120
118
# Postgres connection
121
119
- POSTGRES_USER=username
122
120
- POSTGRES_PASS=password
@@ -125,7 +123,8 @@ services:
125
123
- POSTGRES_PORT=5432
126
124
- DB_MIN_CONN_SIZE=1
127
125
- 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"
129
128
depends_on :
130
129
- database
131
130
volumes :
0 commit comments