merge
This commit is contained in:
@@ -36,6 +36,26 @@ services:
|
||||
- ./backend:/app
|
||||
- venv:/app/.venv
|
||||
|
||||
frontend:
|
||||
build: ./frontend
|
||||
command: npm run dev -- --host --port 5173
|
||||
environment:
|
||||
# mock = jeu de démonstration en mémoire (défaut, aucun backend requis).
|
||||
# http = API réelle : renseigner aussi VITE_EDITION_ID (UUID d'une édition
|
||||
# existante, p. ex. après `docker compose run --rm backend uv run python -m app.seed`).
|
||||
VITE_API_MODE: ${VITE_API_MODE:-mock}
|
||||
VITE_EDITION_ID: ${VITE_EDITION_ID:-}
|
||||
# Cible du proxy `/api` de Vite à l'intérieur du réseau compose.
|
||||
VITE_API_TARGET: http://backend:8000
|
||||
ports:
|
||||
- "5173:5173"
|
||||
depends_on:
|
||||
- backend
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
- frontend_node_modules:/app/node_modules
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
venv:
|
||||
frontend_node_modules:
|
||||
|
||||
Reference in New Issue
Block a user