services:
  fine-tune-helper:
    image: node:22-alpine
    working_dir: /app
    command: sh -lc "npm ci && npm run dev"
    ports:
      - "127.0.0.1:${FINE_TUNE_PORT:-4310}:4310"
    environment:
      PORT: 4310
      HOST: 0.0.0.0
      FINE_TUNE_AI_ENDPOINT: ${FINE_TUNE_AI_ENDPOINT:-}
      FINE_TUNE_AI_API_KEY: ${FINE_TUNE_AI_API_KEY:-}
      FINE_TUNE_AI_MODEL: ${FINE_TUNE_AI_MODEL:-}
      FINE_TUNE_BACKEND_URL: ${FINE_TUNE_BACKEND_URL:-}
      FINE_TUNE_BACKEND_TOKEN: ${FINE_TUNE_BACKEND_TOKEN:-}
    volumes:
      - ./:/app
      - fine_tune_node_modules:/app/node_modules

volumes:
  fine_tune_node_modules:
