From 2f8e96bbdbad588e3b5df7f28dda5bd737228fcc Mon Sep 17 00:00:00 2001 From: Nathan Zimmerman Date: Fri, 7 Jan 2022 14:23:39 -0600 Subject: [PATCH] Apply necessary environment variables for example docker-compose (#313) * Apply necessary environment variables for example docker-compose * Add to changelog --- CHANGES.md | 1 + docker-compose.yml | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index bcc8be247..9b7524828 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -16,6 +16,7 @@ ### Fixed +* Add environment variables required by upgraded pgstac container ([#313](https://github.com/stac-utils/stac-fastapi/pull/313)) * Enabled `ContextExtension` by default ([#207](https://github.com/stac-utils/stac-fastapi/issues/207)) * Content-type response headers for the /search endpoint now reflect the geojson response expected in the STAC api spec ([#220](https://github.com/stac-utils/stac-fastapi/issues/220)) * The minimum `limit` value for searches is now 1 ([#296](https://github.com/stac-utils/stac-fastapi/pull/296)) diff --git a/docker-compose.yml b/docker-compose.yml index 4e697a02e..2529acb6f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,4 @@ version: '3' - services: app-sqlalchemy: container_name: stac-fastapi-sqlalchemy @@ -76,6 +75,10 @@ services: - POSTGRES_USER=username - POSTGRES_PASSWORD=password - POSTGRES_DB=postgis + - PGUSER=username + - PGPASSWORD=password + - PGHOST=localhost + - PGDATABASE=postgis ports: - "5439:5432" command: postgres -N 500