-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #242 from jhj0517/feauter/add-compose
Add docker-compose
- Loading branch information
Showing
2 changed files
with
44 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
version: '3.8' | ||
|
||
services: | ||
app: | ||
build: . | ||
image: jhj0517/whisper-webui:latest | ||
|
||
volumes: | ||
# Update paths to mount models and output paths to your custom paths like this, e.g: | ||
# - C:/whisper-models/custom-path:/sam2-playground/models | ||
# - C:/whisper-webui-outputs/custom-path:/sam2-playground/outputs | ||
- /Whisper-WebUI/models | ||
- /Whisper-WebUI/outputs | ||
|
||
ports: | ||
- "7860:7860" | ||
|
||
stdin_open: true | ||
tty: true | ||
|
||
entrypoint: ["python", "app.py", "--server_port", "7860", "--server_name", "0.0.0.0",] | ||
|
||
# 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 ] |