From 61d4b1c23b7c306c51fbbd470a42ff0b3c60801e Mon Sep 17 00:00:00 2001 From: Prabhudayal Vaishnav <128473068+xprabhudayal@users.noreply.github.com> Date: Mon, 2 Feb 2026 20:22:11 +0530 Subject: [PATCH] feat: add docker-compose.yaml with model cache persistence (#64) Closes #28 --- .dockerignore | 6 ++++++ docker-compose.yaml | 14 ++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .dockerignore create mode 100644 docker-compose.yaml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..e858388 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,6 @@ +.git +.venv +__pycache__ +*.pyc +tests/test_custom_path.py +temp_models/ diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..0023b24 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,14 @@ +services: + pocket-tts: + build: . + ports: + - "8000:8000" + volumes: + - pocket_tts_cache:/root/.cache/pocket_tts + - hf_cache:/root/.cache/huggingface + command: ["uv", "run", "pocket-tts", "serve", "--host", "0.0.0.0"] + restart: unless-stopped + +volumes: + pocket_tts_cache: + hf_cache: