BaseUrlPath and Health check for Streamlit app running on ECS / Fargate

Hi All,

I’m running a streamlit app in a docker container using ECS / Fargate.

And, I need to configure my app baseURLpath as well as healthcheck. and I’ve written my docker file command as below, but it’s failing due to unhealthy status.

ENTRYPOINT [“streamlit”, “run”, “appTest.py”, “–server.port=8501”, “–server.address=0.0.0.0”, “–server.baseUrlPath=app-test-path”]

HEALTHCHECK --interval=20s --timeout=20s CMD curl -f --noproxy ‘*’ -k http://localhost:8501/app-test-path/_stcore/health || exit 1

If I pass my healthcheck url as http://localhost:8501/_stcore/health also failing

Only works if I pass without baseURLpth then it works, but I need to pass basedUrl path and healtcheck should successful.

Any idea how this can be fixed to deploy into ECS?

Thanks,
Sam

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.