36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
---
|
|
name: agent-call
|
|
services:
|
|
asr-web:
|
|
build:
|
|
context: ./services/asr-web
|
|
restart: unless-stopped
|
|
init: true
|
|
read_only: true
|
|
cap_drop: [ALL]
|
|
security_opt: [no-new-privileges:true]
|
|
pids_limit: 128
|
|
mem_limit: 256m
|
|
cpus: 1
|
|
ports:
|
|
- "127.0.0.1:${ASR_WEB_PORT:-18088}:8080"
|
|
environment:
|
|
ASR_LISTEN: "0.0.0.0:8080"
|
|
ASR_WEB_TOKEN: "${ASR_WEB_TOKEN:?Set ASR_WEB_TOKEN}"
|
|
PUBLIC_ORIGIN: "${PUBLIC_ORIGIN:-}"
|
|
BAILIAN_API_KEY: "${BAILIAN_API_KEY:-}"
|
|
BAILIAN_WS: "${BAILIAN_WS:-}"
|
|
FUNASR_API_KEY: "${FUNASR_API_KEY:-}"
|
|
FUNASR_WS: "${FUNASR_WS:-}"
|
|
BAILIAN_ASR_MODELS: "${BAILIAN_ASR_MODELS:-fun-asr-realtime}"
|
|
VOLC_APP_KEY: "${VOLC_APP_KEY:-}"
|
|
VOLC_APP_ID: "${VOLC_APP_ID:-}"
|
|
VOLC_ACCESS_TOKEN: "${VOLC_ACCESS_TOKEN:-}"
|
|
VOLC_RESOURCE_ID: "${VOLC_RESOURCE_ID:-volc.bigasr.sauc.duration}"
|
|
VOLC_WS: "${VOLC_WS:-wss://openspeech.bytedance.com/api/v3/sauc/bigmodel}"
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|