-
Notifications
You must be signed in to change notification settings - Fork 0
/
trunk-recorder-and-transcriber
97 lines (91 loc) · 2.52 KB
/
trunk-recorder-and-transcriber
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
version: '3.8'
services:
recorder:
image: robotastic/trunk-recorder:latest
container_name: trunk-recorder
restart: always
privileged: true
volumes:
- /dev/bus/usb:/dev/bus/usb
- /var/run/dbus:/var/run/dbus
- /var/run/avahi-daemon/socket:/var/run/avahi-daemon/socket
- ./:/app
api:
image: ghcr.io/crimeisdown/trunk-transcribe:${VERSION:-main}
build:
context: .
dockerfile: Dockerfile
cache_from:
- ghcr.io/crimeisdown/trunk-transcribe:main
ports:
- 8000:8000
command: api
volumes:
- ./app:/src/app
- ./bin:/src/bin
- ./config:/src/config
- ./tests:/src/tests
- ./bin/docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh
env_file: .env
restart: always
worker:
image: ghcr.io/crimeisdown/trunk-transcribe:${VERSION:-main}-${WHISPER_MODEL:-small.en}-${DESIRED_CUDA:-cpu-cpp}
build:
context: .
dockerfile: ${WORKER_DOCKERFILE:-Dockerfile.whispercpp}
cache_from:
- ghcr.io/crimeisdown/trunk-transcribe:main-${WHISPER_MODEL:-small.en}-${DESIRED_CUDA:-cpu-cpp}
args:
WHISPER_MODEL: ${WHISPER_MODEL:-small.en}
volumes:
- ./app:/src/app
- ./config:/src/config
- ./bin/docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh
env_file: .env
restart: always
flower:
image: ghcr.io/crimeisdown/trunk-transcribe:${VERSION:-main}
command: flower
volumes:
- ./bin/docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh
- flower-data:/src/data
ports:
- 5555:5555
environment:
- CELERY_BROKER_URL
- CELERY_RESULT_BACKEND
- CELERY_QUEUES=transcribe,retranscribe
- FLOWER_PURGE_OFFLINE_WORKERS=120
- FLOWER_PERSISTENT=1
- FLOWER_DB=/src/data/flower
- FLOWER_STATE_SAVE_INTERVAL=30000
- FLOWER_BROKER_API
restart: always
rabbitmq:
image: rabbitmq:3-management
volumes:
- rabbitmq-data:/var/lib/rabbitmq
ports:
- 5672:5672
- 15672:15672
environment:
- RABBITMQ_DEFAULT_USER
- RABBITMQ_DEFAULT_PASS
restart: always
meilisearch:
image: 'getmeili/meilisearch:${MEILI_VERSION:-latest}'
ports:
- 7700:7700
environment:
- MEILI_MASTER_KEY
volumes:
- meilisearch-data:/meili_data
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--spider", "http://localhost:7700/health"]
retries: 3
timeout: 5s
restart: always
volumes:
flower-data:
rabbitmq-data:
meilisearch-data: