Skip to content

Commit 0095d2a

Browse files
committed
update official images
1 parent 9c2bf01 commit 0095d2a

File tree

1 file changed

+25
-13
lines changed

1 file changed

+25
-13
lines changed

docker-compose.official.yml

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
version: '3'
22

33
services:
4-
stac:
4+
stac-fastapi:
55
image: ghcr.io/stac-utils/stac-fastapi-pgstac:latest
66
ports:
77
- "${MY_DOCKER_IP:-127.0.0.1}:8081:8081"
88
environment:
99
- APP_HOST=0.0.0.0
1010
- APP_PORT=8081
11-
- HOST=0.0.0.0
12-
- PORT=8081
1311
- ENVIRONMENT=local
14-
# https://github.com/tiangolo/uvicorn-gunicorn-docker#web_concurrency
15-
- WEB_CONCURRENCY=10
16-
# https://github.com/tiangolo/uvicorn-gunicorn-docker#workers_per_core
17-
# - WORKERS_PER_CORE=1
18-
# https://github.com/tiangolo/uvicorn-gunicorn-docker#max_workers
19-
# - MAX_WORKERS=10
2012
# Postgres connection
2113
- POSTGRES_USER=username
2214
- POSTGRES_PASS=password
@@ -29,11 +21,11 @@ services:
2921
depends_on:
3022
- database
3123
command:
32-
bash -c "bash /tmp/scripts/wait-for-it.sh -t 120 -h database -p 5432 && /start.sh"
24+
bash -c "bash /tmp/scripts/wait-for-it.sh -t 120 -h database -p 5432 && python -m stac_fastapi.pgstac.app"
3325
volumes:
3426
- ./dockerfiles/scripts:/tmp/scripts
3527

36-
raster:
28+
titiler-pgstac:
3729
# At the time of writing, rasterio and psycopg wheels are not available for arm64 arch
3830
# so we force the image to be built with linux/amd64
3931
platform: linux/amd64
@@ -82,8 +74,8 @@ services:
8274
volumes:
8375
- ./dockerfiles/scripts:/tmp/scripts
8476

85-
vector:
86-
image: ghcr.io/developementseed/tipg:latest
77+
tipg:
78+
image: ghcr.io/developmentseed/tipg:latest
8779
ports:
8880
- "${MY_DOCKER_IP:-127.0.0.1}:8083:8083"
8981
environment:
@@ -110,3 +102,23 @@ services:
110102
- database
111103
volumes:
112104
- ./dockerfiles/scripts:/tmp/scripts
105+
106+
database:
107+
container_name: eoapi.db
108+
image: ghcr.io/stac-utils/pgstac:v0.7.10
109+
environment:
110+
- POSTGRES_USER=username
111+
- POSTGRES_PASSWORD=password
112+
- POSTGRES_DB=postgis
113+
- PGUSER=username
114+
- PGPASSWORD=password
115+
- PGDATABASE=postgis
116+
ports:
117+
- "${MY_DOCKER_IP:-127.0.0.1}:5439:5432"
118+
command: postgres -N 500
119+
volumes:
120+
- ./.pgdata:/var/lib/postgresql/data
121+
122+
networks:
123+
default:
124+
name: eoapi-network

0 commit comments

Comments
 (0)