# Spec-less Compose file (Docker Compose v2+). The top-level `version:` key
# is intentionally omitted — it is deprecated and emits a warning on modern
# Compose versions.

services:
  web:
    build:
      context: ./frontend
      dockerfile: Dockerfile
    image: andishkade-foolad:latest
    container_name: andishkade-foolad
    ports:
      # host:container — HF Spaces also exposes 7860 publicly
      - "7860:7860"
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "wget", "-qO-", "http://127.0.0.1:7860/"]
      interval: 30s
      timeout: 5s
      retries: 3
      start_period: 10s
