Skip to content

Commit 995a49d

Browse files
committed
use eoapi.stac image for official stac-fastapi-pgstac service
1 parent 98189e3 commit 995a49d

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

docker-compose.official.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,24 @@ version: '3'
22

33
services:
44
stac-fastapi:
5-
image: ghcr.io/stac-utils/stac-fastapi-pgstac:latest
5+
build:
6+
context: .
7+
dockerfile: dockerfiles/Dockerfile.stac
68
ports:
79
- "${MY_DOCKER_IP:-127.0.0.1}:8081:8081"
810
environment:
9-
- APP_HOST=0.0.0.0
10-
- APP_PORT=8081
11-
- ENVIRONMENT=local
11+
# Application
12+
- HOST=0.0.0.0
13+
- PORT=8081
14+
- MODULE_NAME=stac_fastapi.pgstac.app
15+
- VARIABLE_NAME=app
16+
# gunicorn
17+
# https://github.com/tiangolo/uvicorn-gunicorn-docker#web_concurrency
18+
- WEB_CONCURRENCY=10
19+
# https://github.com/tiangolo/uvicorn-gunicorn-docker#workers_per_core
20+
# - WORKERS_PER_CORE=1
21+
# https://github.com/tiangolo/uvicorn-gunicorn-docker#max_workers
22+
# - MAX_WORKERS=10
1223
# Postgres connection
1324
- POSTGRES_USER=username
1425
- POSTGRES_PASS=password
@@ -21,7 +32,7 @@ services:
2132
depends_on:
2233
- database
2334
command:
24-
bash -c "bash /tmp/scripts/wait-for-it.sh -t 120 -h database -p 5432 && python -m stac_fastapi.pgstac.app"
35+
bash -c "bash /tmp/scripts/wait-for-it.sh -t 120 -h database -p 5432 && /start.sh"
2536
volumes:
2637
- ./dockerfiles/scripts:/tmp/scripts
2738

0 commit comments

Comments
 (0)