services: whisper-api: image: python:3.9-slim container_name: voice_whisper restart: unless-stopped working_dir: /app volumes: - ./app.py:/app/app.py command: > sh -c "pip install flask faster-whisper && python app.py" ports: - "5000:5000" voice-bridge: image: python:3.9-slim container_name: voice_bridge restart: unless-stopped deploy: resources: limits: memory: 500M depends_on: - whisper-api working_dir: /app volumes: - ./mqtt_audio_bridge.py:/app/mqtt_audio_bridge.py environment: - XDG_CACHE_HOME=/root/.cache command: > sh -c "pip install paho-mqtt requests 'numpy<2' openwakeword tflite-runtime && python -c 'import openwakeword; openwakeword.utils.download_models()' && python mqtt_audio_bridge.py"