maneshtrader/docker-compose.yml

27 lines
708 B
YAML

services:
maneshtrader:
image: maneshtrader:latest
pull_policy: build
build:
context: .
dockerfile: Dockerfile
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:
- maneshtrader_data:/root/.web_local_shell
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
volumes:
maneshtrader_data: