# NUC Docker Compose Override
# Uses NUC-hosted PostgreSQL instead of local container
#
# Usage:
#   cp .env.nuc .env
#   docker compose -f docker-compose.production.yml -f docker-compose.nuc.yml up -d
#
# This removes the local db service and connects API to NUC database

version: '3.8'

services:
  # Disable local database (using NUC instead)
  db:
    profiles:
      - disabled

  # API Server - connect to NUC database
  api:
    environment:
      - DATABASE_URL=postgresql://scraper:scraper_nuc_2026@192.168.1.3:5437/scraper
      - REVIEWIQ_DATABASE_URL=postgresql://scraper:scraper_nuc_2026@192.168.1.3:5437/scraper
    depends_on: []  # Remove db dependency
    extra_hosts:
      - "host.docker.internal:host-gateway"
