Adicionar docker-compose.yml

This commit is contained in:
2026-03-27 01:02:51 -03:00
parent 4d5b6afc29
commit 4f6a99e2f7

28
docker-compose.yml Normal file
View File

@@ -0,0 +1,28 @@
version: "3.8"
services:
streamlit-monitor:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
environment:
PYTHONDONTWRITEBYTECODE: "1"
PYTHONUNBUFFERED: "1"
STREAMLIT_SERVER_PORT: "8501"
STREAMLIT_SERVER_ADDRESS: "0.0.0.0"
STREAMLIT_SERVER_HEADLESS: "true"
STREAMLIT_BROWSER_GATHER_USAGE_STATS: "false"
TIMEZONE: "America/Sao_Paulo"
TZ: "America/Sao_Paulo"
expose:
- "8501"
healthcheck:
test: ["CMD-SHELL", "curl --fail http://localhost:8501/_stcore/health || exit 1"]
interval: 30s
timeout: 10s
start_period: 20s
retries: 3