2024-12-31 04:51:21 -07:00
|
|
|
services:
|
|
|
|
model-fetcher:
|
|
|
|
image: datamachines/git-lfs:latest
|
|
|
|
volumes:
|
|
|
|
- ./Kokoro-82M:/app/Kokoro-82M
|
|
|
|
working_dir: /app/Kokoro-82M
|
|
|
|
command: >
|
|
|
|
sh -c "
|
2025-01-01 17:38:22 -07:00
|
|
|
rm -f .git/index.lock;
|
2024-12-31 04:51:21 -07:00
|
|
|
if [ -z \"$(ls -A .)\" ]; then
|
2025-01-01 17:38:22 -07:00
|
|
|
git clone https://huggingface.co/hexgrad/Kokoro-82M
|
2024-12-31 04:51:21 -07:00
|
|
|
touch .cloned;
|
|
|
|
else
|
2025-01-01 17:38:22 -07:00
|
|
|
rm -f .git/index.lock && \
|
|
|
|
git checkout main && \
|
|
|
|
git pull origin main && \
|
2024-12-31 04:51:21 -07:00
|
|
|
touch .cloned;
|
|
|
|
fi;
|
|
|
|
tail -f /dev/null
|
|
|
|
"
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "test", "-f", ".cloned"]
|
2025-01-01 17:38:22 -07:00
|
|
|
interval: 3s
|
2024-12-31 04:51:21 -07:00
|
|
|
timeout: 1s
|
|
|
|
retries: 120
|
|
|
|
start_period: 1s
|
|
|
|
|
|
|
|
kokoro-tts:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.cpu
|
|
|
|
volumes:
|
|
|
|
- ./api/src:/app/api/src
|
|
|
|
- ./Kokoro-82M:/app/Kokoro-82M
|
|
|
|
ports:
|
|
|
|
- "8880:8880"
|
|
|
|
environment:
|
|
|
|
- PYTHONPATH=/app:/app/Kokoro-82M
|
|
|
|
depends_on:
|
|
|
|
model-fetcher:
|
|
|
|
condition: service_healthy
|