Adicionar docker-compose.yml
This commit is contained in:
28
docker-compose.yml
Normal file
28
docker-compose.yml
Normal 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
|
||||||
Reference in New Issue
Block a user