Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.13 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.13 KB

STAC API Server

Custom fork of stac-fastapi server, with edited Dockerfile and few additional features.

Deployment

Build Jobs

Two build jobs set up, for building both prod and dev docker image from Dockerfile_dev and Dockerfile_prod.

Environment variables

Var name Used for
APP_HOST IP To bind the stac-fastapi server to (0.0.0.0)
APP_PORT Port on which to run the stac-fastapi
POSTGRES_USER Postgres username
POSTGRES_PASS Postgres password
POSTGRES_DBNAME Postgres database name (must have postgis and btree plugin enabled)
POSTGRES_HOST_READER Hostname of the database for read connections
POSTGRES_HOST_WRITER Hostname of the database for write connections
POSTGRES_PORT Postgress port
AZURE_SIGN_BLOBS Append SAS Read tokens to blob urls specified with
AZURE_STORAGE_CONNECTION_STRING Azure storage string used to sign private blobs
AZURE_STORAGE_BLOB_NAME_FOR_STAC_ITEMS Container name for storing the blobs

Check out docker-compose.yml for other variables

Setting up the database

Apply ./scripts/setup_pgstac_schema.sql on your database specified with POSTGRES_DBNAME env var.