-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
49 lines (45 loc) · 944 Bytes
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:80"
depends_on:
- backend
env_file:
- .env
volumes:
- ./frontend:/app
- /app/node_modules
networks:
- voice-transcription_network
backend:
build:
context: ./voice-backend
dockerfile: Dockerfile
ports:
- "5001:5000"
volumes:
- ./voice-backend:/app
- whisper_model_data:/app/models
env_file:
- .env
networks:
- voice-transcription_network
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
# runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
volumes:
whisper_model_data:
networks:
voice-transcription_network:
driver: bridge