Spaces:
Running
Running
jhj0517
commited on
Commit
·
c87ffe8
1
Parent(s):
d25d786
Add docker-compose.yaml
Browse files- docker-compose.yaml +31 -0
docker-compose.yaml
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
version: '3.8'
|
2 |
+
|
3 |
+
services:
|
4 |
+
app:
|
5 |
+
build: .
|
6 |
+
image: jhj0517/whisper-webui:latest
|
7 |
+
|
8 |
+
volumes:
|
9 |
+
# Update paths to mount models and output paths to your custom paths, e.g:
|
10 |
+
# - C:/whisper-models/custom-path:/sam2-playground/models
|
11 |
+
# - C:/whisper-webui-outputs/custom-path:/sam2-playground/outputs
|
12 |
+
- C:\Whisper_Project\Whisper-WebUI\models:/Whisper-WebUI/models
|
13 |
+
- C:\Whisper_Project\Whisper-WebUI\outputs:/Whisper-WebUI/outputs
|
14 |
+
|
15 |
+
ports:
|
16 |
+
- "7860:7860"
|
17 |
+
|
18 |
+
stdin_open: true
|
19 |
+
tty: true
|
20 |
+
|
21 |
+
entrypoint: ["python", "app.py", "--server_port", "7860", "--server_name", "0.0.0.0",]
|
22 |
+
|
23 |
+
# If you're not using nvidia GPU, Update device to match yours.
|
24 |
+
# See more info at : https://docs.docker.com/compose/compose-file/deploy/#driver
|
25 |
+
deploy:
|
26 |
+
resources:
|
27 |
+
reservations:
|
28 |
+
devices:
|
29 |
+
- driver: nvidia
|
30 |
+
count: all
|
31 |
+
capabilities: [ gpu ]
|