jhj0517 commited on
Commit
8599e68
·
unverified ·
2 Parent(s): d25d786 a6c2eab

Merge pull request #242 from jhj0517/feauter/add-compose

Browse files
Files changed (2) hide show
  1. README.md +13 -18
  2. docker-compose.yaml +31 -0
README.md CHANGED
@@ -54,33 +54,28 @@ And you can also run the project with command line arguments if you like to, see
54
 
55
  - ## Running with Docker
56
 
57
- 1. Build the image
58
 
59
  ```sh
60
- docker build -t whisper-webui:latest .
61
  ```
62
 
63
- 2. Run the container with commands
64
 
65
- - For bash :
66
  ```sh
67
- docker run --gpus all -d \
68
- -v /path/to/models:/Whisper-WebUI/models \
69
- -v /path/to/outputs:/Whisper-WebUI/outputs \
70
- -p 7860:7860 \
71
- -it \
72
- whisper-webui:latest --server_name 0.0.0.0 --server_port 7860
73
  ```
74
- - For PowerShell:
75
- ```shell
76
- docker run --gpus all -d `
77
- -v /path/to/models:/Whisper-WebUI/models `
78
- -v /path/to/outputs:/Whisper-WebUI/outputs `
79
- -p 7860:7860 `
80
- -it `
81
- whisper-webui:latest --server_name 0.0.0.0 --server_port 7860
82
  ```
83
 
 
 
 
 
84
  # VRAM Usages
85
  This project is integrated with [faster-whisper](https://github.com/guillaumekln/faster-whisper) by default for better VRAM usage and transcription speed.
86
 
 
54
 
55
  - ## Running with Docker
56
 
57
+ 1. Git clone the repository
58
 
59
  ```sh
60
+ git clone https://github.com/jhj0517/Whisper-WebUI.git
61
  ```
62
 
63
+ 2. Build the image ( Image is about 7GB~ )
64
 
 
65
  ```sh
66
+ docker compose build
 
 
 
 
 
67
  ```
68
+
69
+ 3. Run the container
70
+
71
+ ```sh
72
+ docker compose up
 
 
 
73
  ```
74
 
75
+ 4. Connect to the WebUI with your browser at `http://localhost:7860`
76
+
77
+ If needed, update the [`docker-compose.yaml`](https://github.com/jhj0517/Whisper-WebUI/blob/feauter/add-compose/docker-compose.yaml) to match your environment.
78
+
79
  # VRAM Usages
80
  This project is integrated with [faster-whisper](https://github.com/guillaumekln/faster-whisper) by default for better VRAM usage and transcription speed.
81
 
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 like this, e.g:
10
+ # - C:/whisper-models/custom-path:/sam2-playground/models
11
+ # - C:/whisper-webui-outputs/custom-path:/sam2-playground/outputs
12
+ - /Whisper-WebUI/models
13
+ - /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 ]