version: '3.8' services: car-price-predictor: build: . container_name: car_price_app ports: - "7860:7860" volumes: # Mount only if you want to update models without rebuilding - ./model:/app/model - ./embeddings:/app/embeddings environment: - FLASK_ENV=production - PYTHONUNBUFFERED=1 restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:7860/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s