services:
  transcription:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: transcription-app
    env_file:
      - .env
    environment:
      DATABASE_URL: sqlite:////app/data/transcription.db
      UPLOAD_DIR: /app/uploads
      PROMPT_DIR: /app/prompts
    ports:
      - "8002:8000"
    volumes:
      - ./uploads:/app/uploads
      - transcription_data:/app/data
    restart: unless-stopped

volumes:
  transcription_data:
