-
Notifications
You must be signed in to change notification settings - Fork 45
/
docker-compose-nobuild.yml
112 lines (96 loc) · 2.79 KB
/
docker-compose-nobuild.yml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
version: '3.8'
# transcription stream startup
#
# make sure the volumes exist
services:
init:
image: busybox
volumes:
- transcriptionstream:/transcriptionstream
command: /bin/sh -c "mkdir -p /transcriptionstream/incoming/transcribe /transcriptionstream/incoming/diarize /transcriptionstream/transcribed /transcriptionstream/scripts && chown -R transcriptionstream:transcriptionstream /transcriptionstream/incoming"
# Start up the worker container
ts_transcription_service:
image: transcriptionstream/ts-gpu:latest
environment:
- DIARIZATION_MODEL=${DIARIZATION_MODEL}
- TRANSCRIPTION_MODEL=${TRANSCRIPTION_MODEL}
- MAX_CONCURRENT_TRANSFORMS=${MAX_CONCURRENT_TRANSFORMS}
- MAX_CONCURRENT_SUMMARYS=${MAX_CONCURRENT_SUMMARYS}
- OLLAMA_ENDPOINT_IP=${OLLAMA_ENDPOINT_IP}
- MEILI_MASTER_KEY=${MEILI_MASTER_KEY}
container_name: ts-gpu
shm_size: 6gb
ports:
- "22222:22"
volumes:
- transcriptionstream:/transcriptionstream
- transcriptionstream:/home/transcriptionstream
# - transcriptionstream-scripts:/root/scripts
networks:
ts_private_network:
ipv4_address: 172.30.1.5
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
# Start up the web front end
ts_web_service:
image: transcriptionstream/ts-web:latest
environment:
- TS_WEB_SECRET_KEY=${TS_WEB_SECRET_KEY}
container_name: ts-web
ports:
- "5006:5000"
volumes:
- transcriptionstream:/transcriptionstream
networks:
ts_private_network:
ipv4_address: 172.30.1.2
# Start up MeiliSearch
ts_meilisearch_service:
image: getmeili/meilisearch
environment:
- MEILI_MASTER_KEY=${MEILI_MASTER_KEY}
- MEILI_HTTP_CORS_ORIGINS=http://172.30.1.11:5000
- MEILI_NO_ANALYTICS=true
container_name: ts-meilisearch
ports:
- "7700:7700"
volumes:
- transcriptionstream:/transcriptionstream
- transcriptionstream:/meili_data
networks:
ts_private_network:
ipv4_address: 172.30.1.12
# if you want to run ollama locally and have enough vram uncomment this section
# # Startup ts-gpt
ts_gpt_service:
image: ollama/ollama
container_name: ts-gpt
ports:
- "11434:11434"
volumes:
- transcriptionstream:/root/.ollama
networks:
ts_private_network:
ipv4_address: 172.30.1.3
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
networks:
ts_private_network:
ipam:
config:
- subnet: 172.30.0.0/16
volumes:
transcriptionstream:
external: true
# transcriptionstream-scripts:
# external: true