Base para el flujo de ramas por cliente. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
30 lines
765 B
YAML
30 lines
765 B
YAML
services:
|
|
backend:
|
|
build:
|
|
context: ./mini-backend
|
|
args:
|
|
TZ: ${TZ:-America/Lima}
|
|
ports:
|
|
- "8000:8000"
|
|
env_file:
|
|
- ./mini-backend/.env
|
|
volumes:
|
|
# Se lee del disco en cada request (routers/permissions.py), no se
|
|
# cachea en memoria: editar este archivo en el host y guardarlo ya
|
|
# aplica el cambio, sin reiniciar el contenedor.
|
|
- ./mini-backend/menu_permissions.json:/app/menu_permissions.json:ro
|
|
- ./mini-backend/logs:/app/logs
|
|
restart: always
|
|
|
|
frontend:
|
|
build:
|
|
context: ./mini-frontend
|
|
args:
|
|
VITE_API_URL: ${VITE_API_URL:-http://localhost:8000}
|
|
TZ: ${TZ:-America/Lima}
|
|
ports:
|
|
- "80:80"
|
|
depends_on:
|
|
- backend
|
|
restart: always
|