diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..b44aed7 --- /dev/null +++ b/docker-compose.yml @@ -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 \ No newline at end of file