From cee141ca687bd875fc267575f4c42ebc4db2d025 Mon Sep 17 00:00:00 2001 From: klemek Date: Sun, 5 Jul 2026 23:05:53 +0200 Subject: [PATCH] fix: uv venv shared between docker and local --- compose.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compose.yml b/compose.yml index b3ec298..f5a90ca 100644 --- a/compose.yml +++ b/compose.yml @@ -4,12 +4,14 @@ networks: volumes: postgres-data: redis-data: + venv-data: services: app: image: astral/uv:python3.14-alpine volumes: - .:/app + - venv-data:/venv working_dir: /app environment: - APP_ENV=dev @@ -17,7 +19,9 @@ services: - BIND=0.0.0.0 - DB_URI=postgres://tout-doux:tout-doux@postgres:5432/tout-doux - CACHE_URI=redis://redis:6379 - command: uv run --no-cache --no-sync --link-mode=copy tout-doux --debug + - VIRTUAL_ENV=/venv + - UV_LINK_MODE=copy + command: uv run --active tout-doux --debug networks: - backend depends_on: