services: # El Cerebro - FastAPI vertex-backend: build: . container_name: vertex-backend ports: - "8010:8010" volumes: - .:/app # Mapea la carpeta actual al /app del contenedor restart: always # El Dashboard - Streamlit vertex-dashboard: build: . container_name: vertex-dashboard command: streamlit run app/dashboard.py --server.port 8501 --server.address 0.0.0.0 ports: - "8501:8501" volumes: - .:/app # Mapea la misma carpeta para que compartan el settings.json depends_on: - vertex-backend restart: always # El Vigilante - n8n vertex-n8n: image: n8nio/n8n:latest container_name: vertex-n8n ports: - "5678:5678" environment: - N8N_TIMEZONE=America/New_York volumes: - n8n_data:/home/node/.n8n - .:/app # Opcional: n8n también podrá leer archivos directamente si hace falta restart: always volumes: n8n_data: