Prerequisites
Before deploying with Docker, ensure you have:- Docker and Docker Compose installed
- NVIDIA Docker runtime (for GPU support)
- At least 12GB GPU memory for CUDA inference
- Downloaded model weights (see Running Inference)
Pre-built Images
Fish Audio provides ready-to-use Docker images on Docker Hub:For production use, we recommend using specific version tags instead of
latest to ensure consistency across deployments.Quick Start with Docker Run
The fastest way to get started is usingdocker run:
WebUI Deployment
http://localhost:7860
API Server Deployment
http://localhost:8080
Docker Compose Deployment
For development or customization, Docker Compose provides easier configuration management:Setup
Start Services
Environment Variables
Customize deployment using environment variables or a.env file:
Manual Docker Build
For advanced users who need custom configurations:Build WebUI Image
Build API Server Image
Build Development Image
Build Arguments
Volume Mounts
Both Docker run and Compose methods require these volume mounts:Environment Variables Reference
WebUI Configuration
API Server Configuration
Model Configuration
Performance Optimization
Container Management
View Logs
Stop Containers
Update Images
GPU Support
Prerequisites
Install NVIDIA Container Toolkit:Verify GPU Access
Troubleshooting
Container Won’t Start
Check logs for errors:- Missing model weights in
./checkpoints - Port already in use (change port mapping)
- Insufficient GPU memory
GPU Not Detected
Verify NVIDIA Docker runtime is installed:Performance Issues
- Enable compile optimization:
COMPILE=1 - Ensure GPU is being used (check with
nvidia-smi) - Verify sufficient GPU memory is available
Next Steps
- Run inference - Learn how to generate speech
- Download models - Get pre-trained weights
- API documentation - Integrate with your applications

