-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (68 loc) · 1.87 KB
/
docker-compose.yml
File metadata and controls
73 lines (68 loc) · 1.87 KB
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
version: '3.8'
services:
mysql:
image: mysql:8
environment:
MYSQL_ROOT_PASSWORD: root_password
MYSQL_DATABASE: whisper_db
MYSQL_USER: whisper_user
MYSQL_PASSWORD: whisper_pass
volumes:
- mysql_data:/var/lib/mysql
ports:
- "3306:3306"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "whisper_user", "-pwhisper_pass"]
interval: 30s
timeout: 10s
retries: 3
beanstalk:
image: schickling/beanstalkd
ports:
- "11300:11300"
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "11300"]
interval: 30s
timeout: 10s
retries: 3
api:
build: .
ports:
- "8000:8000"
environment:
DATABASE_URL: mysql+pymysql://whisper_user:whisper_pass@mysql:3306/whisper_db
BEANSTALK_HOST: beanstalk
BEANSTALK_PORT: 11300
WEBHOOK_URL: https://your-webhook-endpoint.com/webhook
API_SECRET_TOKEN: your-super-secret-token-here-12345
RECORDINGS_DIR: /app/recordings
WHISPER_MODEL: base
depends_on:
mysql:
condition: service_healthy
beanstalk:
condition: service_healthy
volumes:
- ./logs:/app/logs
- ./recordings:/app/recordings
command: ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
worker:
build: .
command: ["python", "worker/transcription_worker.py"]
environment:
DATABASE_URL: mysql+pymysql://whisper_user:whisper_pass@mysql:3306/whisper_db
BEANSTALK_HOST: beanstalk
BEANSTALK_PORT: 11300
WEBHOOK_URL: https://your-webhook-endpoint.com/webhook
RECORDINGS_DIR: /app/recordings
WHISPER_MODEL: base
depends_on:
mysql:
condition: service_healthy
beanstalk:
condition: service_healthy
volumes:
- ./logs:/app/logs
- ./recordings:/app/recordings
volumes:
mysql_data: