docker.md
First, prepare the configuration file, setting the server listening port to 8888 and the server listening address to 0.0.0.0.
docker run -d \
-p 8888:8888 \
-v /path/to/config.toml:/app/config/config.toml \
-v /path/to/tasks:/app/tasks \
asteria798/krillinai
version: '3'
services:
krillin:
image: asteria798/krillinai
ports:
- "8888:8888"
volumes:
- /path/to/config.toml:/app/config/config.toml # Configuration file
- /path/to/tasks:/app/tasks # Output directory
If using the fasterwhisper model, KrillinAI will automatically download the necessary files to the /app/models and /app/bin directories. These files will be lost when the container is deleted. To persist the models, you can map these two directories to a directory on the host.
docker run -d \
-p 8888:8888 \
-v /path/to/config.toml:/app/config/config.toml \
-v /path/to/tasks:/app/tasks \
-v /path/to/models:/app/models \
-v /path/to/bin:/app/bin \
asteria798/krillinai
version: '3'
services:
krillin:
image: asteria798/krillinai
ports:
- "8888:8888"
volumes:
- /path/to/config.toml:/app/config/config.toml
- /path/to/tasks:/app/tasks
- /path/to/models:/app/models
- /path/to/bin:/app/bin
0.0.0.0, otherwise the service may not be accessible.proxy's 127.0.0.1 to host.docker.internal, for example, http://host.docker.internal:7890.