43 lines
1014 B
YAML
43 lines
1014 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
whisperlive:
|
|
container_name: whisperlive
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
args:
|
|
PORT_WHISPERLIVE: ${PORT_WHISPERLIVE}
|
|
FASTERWHISPER_MODEL: ${FASTERWHISPER_MODEL}
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
LOG_PATH: /app/logs
|
|
NVIDIA_VISIBLE_DEVICES: all
|
|
NVIDIA_DRIVER_CAPABILITIES: compute,utility
|
|
PORT_WHISPERLIVE: ${PORT_WHISPERLIVE}
|
|
HTTP_PORT: ${HTTP_PORT:-8080}
|
|
volumes:
|
|
- ./models:/app/models
|
|
- ./ssl:/app/ssl
|
|
- ./logs:/app/logs
|
|
deploy:
|
|
resources:
|
|
reservations:
|
|
devices:
|
|
- driver: nvidia
|
|
count: 1
|
|
capabilities: [gpu]
|
|
options:
|
|
memory: "4G" # Match the main docker-compose.yml allocation
|
|
ports:
|
|
- "${PORT_WHISPERLIVE}:${PORT_WHISPERLIVE}"
|
|
- "${HTTP_PORT:-8080}:8080"
|
|
restart: unless-stopped
|
|
networks:
|
|
- default
|
|
|
|
networks:
|
|
default:
|
|
driver: bridge
|