-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (68 loc) · 1.92 KB
/
docker-compose.yml
File metadata and controls
80 lines (68 loc) · 1.92 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
74
75
76
77
78
79
80
# Soniox Microphone Transcription - Docker Compose Configuration
#
# Quick Start:
# 1. Copy .env.example to .env and add your SONIOX_API_KEY
# 2. Run: docker compose up
# 3. Open: http://localhost:4346
#
# For development with live reload:
# docker compose up --build
services:
web:
build:
context: .
dockerfile: Dockerfile
container_name: soniox-transcription
ports:
- "4346:4346"
environment:
# API Configuration
- SONIOX_API_KEY=${SONIOX_API_KEY}
- PORT=4346
# Logging
- LOG_LEVEL=info
# Audio Configuration (Linux only - not needed for web interface on macOS/Windows)
# - PULSE_SERVER=/run/user/1000/pulse/native
# Enable audio device access (Linux only - uncomment for audio passthrough)
# Note: macOS/Windows use browser's microphone via getUserMedia API
# devices:
# - /dev/snd:/dev/snd
# Mount volumes for development
volumes:
# Mount source code for live reload (development only)
- ./src:/app/src:ro
- ./web:/app/web:ro
# Audio device access (Linux with PulseAudio - uncomment if needed)
# - /run/user/1000/pulse:/run/user/1000/pulse:ro
# Restart policy
restart: unless-stopped
# Health check
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4346/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# Resource limits (optional, adjust as needed)
deploy:
resources:
limits:
cpus: '2.0'
memory: 1G
reservations:
cpus: '0.5'
memory: 256M
# Logging configuration
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# Networks (optional, for more complex setups)
networks:
default:
name: soniox-network
# Volumes (for persistent data if needed in future)
volumes:
audio-data:
name: soniox-audio-data