fix: uv venv shared between docker and local

This commit is contained in:
2026-07-05 23:05:53 +02:00
parent 3edc076834
commit cee141ca68
+5 -1
View File
@@ -4,12 +4,14 @@ networks:
volumes: volumes:
postgres-data: postgres-data:
redis-data: redis-data:
venv-data:
services: services:
app: app:
image: astral/uv:python3.14-alpine image: astral/uv:python3.14-alpine
volumes: volumes:
- .:/app - .:/app
- venv-data:/venv
working_dir: /app working_dir: /app
environment: environment:
- APP_ENV=dev - APP_ENV=dev
@@ -17,7 +19,9 @@ services:
- BIND=0.0.0.0 - BIND=0.0.0.0
- DB_URI=postgres://tout-doux:tout-doux@postgres:5432/tout-doux - DB_URI=postgres://tout-doux:tout-doux@postgres:5432/tout-doux
- CACHE_URI=redis://redis:6379 - 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: networks:
- backend - backend
depends_on: depends_on: