diff --git a/compose.yml b/compose.yml
index 4523cab..5c6e6fe 100644
--- a/compose.yml
+++ b/compose.yml
@@ -20,6 +20,6 @@ services:
           ignore:
             - .venv/
 
-        # Rebuild the image on changes to the `pyproject.toml`
+        # Rebuild the image if dependencies change by checking uv.lock
         - action: rebuild
-          path: ./pyproject.toml
+          path: ./uv.lock