Fix Docker healthcheck to use Streamlit port 8502
This commit is contained in:
parent
6b921b63b5
commit
50a664d8ee
@ -18,7 +18,7 @@ services:
|
|||||||
sh -c "pip install -r requirements.txt &&
|
sh -c "pip install -r requirements.txt &&
|
||||||
streamlit run app.py --server.address=0.0.0.0 --server.port=8502 --server.headless=true"
|
streamlit run app.py --server.address=0.0.0.0 --server.port=8502 --server.headless=true"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8501/_stcore/health', timeout=3)\" || exit 1"]
|
test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8502/_stcore/health', timeout=3)\" || exit 1"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user