26 lines
813 B
YAML
26 lines
813 B
YAML
services:
|
|
maneshtrader:
|
|
image: python:3.11-slim
|
|
container_name: maneshtrader2
|
|
working_dir: /app
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${APP_PORT:-8502}:8502"
|
|
environment:
|
|
PYTHONDONTWRITEBYTECODE: "1"
|
|
PYTHONUNBUFFERED: "1"
|
|
PIP_NO_CACHE_DIR: "1"
|
|
STREAMLIT_BROWSER_GATHER_USAGE_STATS: "false"
|
|
volumes:
|
|
- ./:/app
|
|
- ./data:/root/.web_local_shell
|
|
command: >
|
|
sh -c "pip install -r requirements.txt &&
|
|
streamlit run app.py --server.address=0.0.0.0 --server.port=8502 --server.headless=true"
|
|
healthcheck:
|
|
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
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 45s
|