# ============================================================ # 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: backend: build: context: ./backend 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 frontend: build: context: ./frontend dockerfile: Dockerfile restart: unless-stopped ports: - "3002:80" expose: - "80" depends_on: - backend