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

**URL:** <https://discuss.streamlit.io/t/baseurlpath-and-health-check-for-streamlit-app-running-on-ecs-fargate/75094>\
**Category:** Using Streamlit\
**Tags:** aws, streamlit-cloud, discussion\
**Created:** [July 17, 2024, 5:39am UTC](https://discuss.streamlit.io/t/baseurlpath-and-health-check-for-streamlit-app-running-on-ecs-fargate/75094 "2024-07-17T05:39:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam2](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@Sam2](https://discuss.streamlit.io/u/Sam2)\
**Post date:** [July 17, 2024, 5:39am UTC](https://discuss.streamlit.io/t/baseurlpath-and-health-check-for-streamlit-app-running-on-ecs-fargate/75094/1 "2024-07-17T05:39:45Z")

</div>

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](http://localhost:8501/app-test-path/_stcore/health) || exit 1

If I pass my healthcheck url as [http://localhost:8501/\_stcore/health](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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf4c2ee0d938358f82448c5fe4b9c3c91d7ce19c.svg) [@system](https://discuss.streamlit.io/u/system)\
**Post date:** [January 13, 2025, 5:40am UTC](https://discuss.streamlit.io/t/baseurlpath-and-health-check-for-streamlit-app-running-on-ecs-fargate/75094/2 "2025-01-13T05:40:01Z")

</div>

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