Actualizar dominios a dashboardapi y dashboardv1

This commit is contained in:
Administrator
2026-08-29 12:21:21 -05:00
parent 191b5bb1ba
commit 54581c21ab
77 changed files with 7679 additions and 11728 deletions

View File

@@ -1,29 +1,38 @@
# ============================================================
# Dashboard Leads - despliegue con Docker Compose
#
# IP Pública: 161.132.96.129 | IP Privada: 192.168.1.107
#
# Mapeo de puertos en el Host / Nginx Reverse Proxy:
# dashboardv1.escueladerefrigeracion.edu.pe -> host:3002 (frontend nginx)
# dashboardapi.escueladerefrigeracion.edu.pe -> host:8001 (backend uvicorn)
# ============================================================
services:
# 1. EL BACKEND (FastAPI - Python)
backend:
build:
context: ./backend
environment:
- SQL_SERVER=191.98.134.80
- SQL_DATABASE=BDUS_CK000040_0001
- SQL_USERNAME=ASEBASTIAN
- SQL_PASSWORD=24MY36$$z>&Uf # Escapado correctamente para Docker ($$)
- PG_HOST=191.98.134.81
- PG_DATABASE=chatwoot_production
- PG_USER=postgres
- PG_PASSWORD=2165$$%sd3%DFG # <--- ¡CORREGIDO AQUÍ! Añadido el doble $$ para Docker
- PG_PORT=5432
- SUPABASE_URL=https://ogzjtkxnfswpbmnbhnjd.supabase.co
- SUPABASE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9nemp0a3huZnN3cGJtbmJobmpkIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTc3NjYzNDk4MywiZXhwIjoyMDkyMjEwOTgzfQ.D7XB6GIs8UvI97lcMdf6Y6-8ON2ENhh0DOaiMro2f9Y
- GITHUB_BASE=https://raw.githubusercontent.com/aron1798/prueba1/main/DASHBOARD
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "8001:8001"
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
# 2. EL FRONTEND (Vite - React)
frontend:
build:
context: ./frontend
args:
- VITE_SUPABASE_URL=https://ogzjtkxnfswpbmnbhnjd.supabase.co
- VITE_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9nemp0a3huZnN3cGJtbmJobmpkIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzY2MzQ5ODMsImV4cCI6MjA5MjIxMDk4M30.OEMjCJOXHBgAHPxtncQUOVC8iDjW40CnT5pczU-gz0U
- VITE_API_URL=https://dashboardapi.escueladerefrigeracion.edu.pe
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "3002:80"
expose:
- "80"
depends_on:
- backend
- backend