-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·75 lines (69 loc) · 1.81 KB
/
docker-compose.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
name: dev_audio_processing
services:
# Shared Redis instance
redis:
image: redis:latest
restart: unless-stopped
command: redis-server --requirepass ${REDIS_PASSWORD}
volumes:
- ${VOLUME_DATA_PATH}/redis:/data
# Audio Processing Service
streamqueue:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./streamqueue:/usr/src/app/streamqueue
- ./shared_lib:/usr/src/app/shared_lib
command: python -m streamqueue.main
# command: tail -f /dev/null
restart: unless-stopped
ports:
- "${TRANSCRIPTION_SERVICE_API_PORT}:${TRANSCRIPTION_SERVICE_API_PORT}"
depends_on:
- redis
environment:
- REDIS_HOST
- REDIS_PORT
- API_HOST
- TRANSCRIPTION_SERVICE_API_PORT
- TRANSCRIPTION_SERVICE_API_TOKEN
- AUDIO_CHUNK_DURATION_SEC
- REDIS_PASSWORD
- PYTHONPATH=/app/streamqueue:/app/shared_lib
audio:
build:
context: .
dockerfile: Dockerfile
volumes:
- ${VOLUME_DATA_PATH}:/data/audio
- ./app:/usr/src/app/app
- ./shared_lib:/usr/src/app/shared_lib
command: supervisord -c /usr/src/app/app/supervisord.conf
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- redis
environment:
- SERVICE_VERSION
- REDIS_HOST
- REDIS_PORT
- AUDIO_CHUNK_DURATION_SEC
- SEGMENT_SIZE_SEC
- PROCESSING_THREADS
- CHECK_AND_PROCESS_CONNECTIONS_INTERVAL_SEC
- SPEAKER_DELAY_SEC
- WHISPER_SERVICE_URL
- WHISPER_PORT
- WHISPER_API_TOKEN
- REDIS_PASSWORD
- TRANSCRIBER_STEP_SEC
- MAX_AUDIO_LENGTH_SEC
- ENGINE_API_PORT
- ENGINE_API_URL
- ENGINE_API_TOKEN
- PYTHONPATH=/usr/src/app
networks:
default:
driver: bridge