services:
  speakr:
    build:
      context: ..
      dockerfile: deploy/speakr.runtime.Dockerfile
    image: voice-speakr:runtime
    container_name: voice-speakr
    restart: unless-stopped
    working_dir: /app
    environment:
      PYTHONPATH: /app
      SQLALCHEMY_DATABASE_URI: sqlite:////data/instance/transcriptions.db
      UPLOAD_FOLDER: /data/uploads
      USE_ASR_ENDPOINT: "true"
      ASR_BASE_URL: http://192.168.0.46:59805
      TEXT_MODEL_BASE_URL: http://192.168.0.46:59800/v1
      TEXT_MODEL_NAME: 46-qwen3.5-35B
      TEXT_MODEL_API_KEY: none
    volumes:
      - ../speakr:/app
      - ./data/speakr/uploads:/data/uploads
      - ./data/speakr/instance:/data/instance
    ports:
      - "8899:8899"
    depends_on:
      - voice-dected

  voice-dected:
    build:
      context: ..
      dockerfile: deploy/voice-dected.runtime.Dockerfile
    image: voice-dected:runtime
    container_name: voice-dected
    restart: unless-stopped
    working_dir: /app
    environment:
      PYTHONPATH: /app
    volumes:
      - ../voice-dected/src:/app
    ports:
      - "18000:8000"
