version: '3.8'

services:
  medix-q:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: medix-q-app
    ports:
      - "3000:3000"
    environment:
      - NODE_ENV=production
      - PORT=3000
    volumes:
      - ./data:/app/.data
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:3000/api/patients"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 40s
