services: app: build: dockerfile: backend/Dockerfile context: .. image: jhj0517/whisper-webui-backend:latest volumes: # You can mount the container's volume paths to directory paths on your local machine. # Models will be stored in the `./models' directory on your machine. # Similarly, all output files will be stored in the `./outputs` directory. # The DB file is saved in /Whisper-WebUI/backend/records.db unless you edit it in /Whisper-WebUI/backend/configs/.env - ./models:/Whisper-WebUI/models - ./outputs:/Whisper-WebUI/outputs - ./backend:/Whisper-WebUI/backend ports: - "8000:8000" stdin_open: true tty: true entrypoint: ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8000"] # If you're not using Nvidia GPU, Update device to match yours. # See more info at : https://docs.docker.com/compose/compose-file/deploy/#driver deploy: resources: reservations: devices: - driver: nvidia count: all capabilities: [ gpu ]