developmentseed / eoAPI

[Active Development] Earth Observation API (Metadata, Raster and Vector services)
https://eoapi.dev
MIT License
197 stars 21 forks source link

TiTiler STAC viewer returns 404 #16

Closed drnextgis closed 2 years ago

drnextgis commented 3 years ago

https://user-images.githubusercontent.com/866124/132497769-df2ab162-f45f-4e0a-afdb-0bad2f9563aa.mp4

vincentsarago commented 3 years ago

are you using docker-compose? if not can you make sure to have the TITILER_ENDPOINT env set pointing the eoapi.raster endpoint

https://github.com/developmentseed/eoAPI/blob/master/docker-compose.yml#L29

drnextgis commented 3 years ago

yes, I'm using default docker-compose.yml

vincentsarago commented 3 years ago

the url seems weird raster/stac/viewer

vincentsarago commented 3 years ago

👍 yep, confirmed I'm not an docker expert but it seems that https://github.com/developmentseed/eoAPI/blob/master/docker-compose.yml#L29 pass the word raster instead of http://0.0.0.0:8082 🤷

drnextgis commented 3 years ago

Correct, raster is the name which is used to communicate between containers and it is not available from the docker host. As you mentioned using http://0.0.0.0:8082 solves the issue: image

vincentsarago commented 2 years ago

I've hardcoded the host in the docker-compose file https://github.com/developmentseed/eoAPI/blob/master/docker-compose.yml#L34