version: "3.8" services: app: build: context: . dockerfile: Dockerfile container_name: huibrain-app restart: unless-stopped ports: - "${APP_PORT:-8000}:8000" volumes: - ./data:/app/data env_file: - .env healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"] interval: 30s timeout: 10s retries: 3 start_period: 60s