Actualizar docker-compose.yml con sintaxis YAML corregida y puerto 80 para frontend
This commit is contained in:
@@ -1,38 +1,33 @@
|
||||
# ============================================================
|
||||
# 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
|
||||
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
|
||||
- "8000:8000"
|
||||
environment:
|
||||
- "SQL_SERVER=191.98.134.80"
|
||||
- "SQL_DATABASE=BDUS_CK000040_0001"
|
||||
- "SQL_USERNAME=ASEBASTIAN"
|
||||
- "SQL_PASSWORD=24MY36$$z>&Uf"
|
||||
- "PG_HOST=191.98.134.81"
|
||||
- "PG_DATABASE=chatwoot_production"
|
||||
- "PG_USER=postgres"
|
||||
- "PG_PASSWORD=2165$$%sd3%DFG"
|
||||
- "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"
|
||||
|
||||
# 2. EL FRONTEND (Vite - React)
|
||||
frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
restart: unless-stopped
|
||||
args:
|
||||
- "VITE_SUPABASE_URL=https://ogzjtkxnfswpbmnbhnjd.supabase.co"
|
||||
- "VITE_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im9nemp0a3huZnN3cGJtbmJobmpkIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzY2MzQ5ODMsImV4cCI6MjA5MjIxMDk4M30.OEMjCJOXHBgAHPxtncQUOVC8iDjW40CnT5pczU-gz0U"
|
||||
- "VITE_API_URL=https://dashboardapi.escueladerefrigeracion.edu.pe"
|
||||
ports:
|
||||
- "3002:80"
|
||||
expose:
|
||||
- "80"
|
||||
- "80:5173"
|
||||
depends_on:
|
||||
- backend
|
||||
|
||||
Reference in New Issue
Block a user