fix: uv venv shared between docker and local
This commit is contained in:
+5
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user