Dashboard Leads - version limpia para servidor (.env y config de despliegue restaurados)

This commit is contained in:
Panchito
2026-08-20 11:00:14 -05:00
parent 514bcbda45
commit 9a73e95ae5
4 changed files with 99 additions and 0 deletions

36
docker-compose.yml Normal file
View File

@@ -0,0 +1,36 @@
# ============================================================
# Dashboard Leads - despliegue con Docker Compose (EasyPanel)
#
# backend : FastAPI + uvicorn en el puerto 8001
# (lee sus credenciales de backend/.env, incluido en la imagen)
# frontend: build de Vite servido por nginx en el puerto 80
#
# En EasyPanel, apunta los dominios a:
# api-leads.escueladerefrigeracion.lat -> backend : 8001
# dashboard-leads.escueladerefrigeracion.lat -> frontend : 80
# ============================================================
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
restart: unless-stopped
expose:
- "8001"
healthcheck:
test: ["CMD-SHELL", "python -c \"import urllib.request;urllib.request.urlopen('http://127.0.0.1:8001/api/health')\" || exit 1"]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
restart: unless-stopped
expose:
- "80"
depends_on:
- backend