mirror of
https://github.com/modelscope/FunASR.git
synced 2026-10-12 11:20:03 +00:00
Add .env.example, docker-compose.yml, and Docker README guidance for the OpenAI-compatible API example.
18 lines
363 B
YAML
18 lines
363 B
YAML
services:
|
|
funasr-api:
|
|
build:
|
|
context: .
|
|
image: funasr-api:local
|
|
ports:
|
|
- "${FUNASR_HOST_PORT:-8000}:8000"
|
|
environment:
|
|
FUNASR_PORT: "8000"
|
|
FUNASR_DEVICE: "${FUNASR_DEVICE:-cpu}"
|
|
FUNASR_MODEL: "${FUNASR_MODEL:-sensevoice}"
|
|
volumes:
|
|
- funasr-cache:/root/.cache
|
|
shm_size: "2gb"
|
|
|
|
volumes:
|
|
funasr-cache:
|