A copy of the Franklin introduction.
host.docker.internal
here is the reference to the DB locally available for the MacOS or Windows machine.
Check Docker docs for more details.
- Run DB migrations
docker run --rm \
quay.io/azavea/franklin:latest \
migrate \
--db-user franklin \
--db-name franklin \
--db-password franklin \
--db-host host.docker.internal
- Import STAC Catalog
docker run --rm \
-v ~/.aws:/var/lib/franklin/.aws \
quay.io/azavea/franklin:latest \
import-catalog \
--db-user franklin \
--db-name franklin \
--db-password franklin \
--db-host host.docker.internal \
--catalog-root s3://geotrellis-workshop/shade-out-catalog-small/catalog.json
- Run Franklin instance
docker run --rm \
-p 9090:9090 \
quay.io/azavea/franklin:latest \
serve \
--db-user franklin \
--db-name franklin \
--db-password franklin \
--db-host host.docker.internal