Save all currently accumulated repository changes as a backup snapshot for Gitea so no local work is lost.
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
whisper_api:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: whisper_api
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8310:8310"
|
|
environment:
|
|
- WHISPER_API_KEY=${WHISPER_API_KEY}
|
|
- WHISPER_MODEL_SIZE=${WHISPER_MODEL_SIZE:-medium}
|
|
- WHISPER_DEVICE=${WHISPER_DEVICE:-cpu}
|
|
- WHISPER_COMPUTE_TYPE=${WHISPER_COMPUTE_TYPE:-int8}
|
|
- WHISPER_CPU_THREADS=${WHISPER_CPU_THREADS:-2}
|
|
- OMP_NUM_THREADS=${OMP_NUM_THREADS:-2}
|
|
- TZ=Europe/Moscow
|
|
- LOG_DIR=/app/logs
|
|
- N8N_CALLBACK_URL=${N8N_CALLBACK_URL:-}
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: "2"
|
|
memory: 4G
|
|
volumes:
|
|
- ./logs:/app/logs
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8310/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 90s
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
networks:
|
|
- whisper_network
|
|
|
|
networks:
|
|
whisper_network:
|
|
driver: bridge
|