The issue was that there is a conflict in uv when using bind mounts. When removing the volumes from the docker-compose file, it worked. I also had to remove a python-version file from my directory. See https://github.com/astral-sh/uv/issues/10615 for more context.