Skip to content

A TTS that fits in your CPU (and pocket)

Python

feat: add docker-compose.yaml with model cache persistence (#64)

Prabhudayal Vaishnav61d4b1c23b7c
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: