CoolFace
Apppublic

VIPC/ghost-kitchen-backend

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
docker-compose.yml32 linesDownload Raw Back to root
1version: '3.8'2 3services:4  # Servicio 1: Tu Base de Datos5  db:6    image: postgres:157    volumes:8      - postgres_data:/var/lib/postgresql/data9    environment:10      - POSTGRES_USER=ghost_user11      - POSTGRES_PASSWORD=ghost_password12      - POSTGRES_DB=ghost_kitchen_db13    ports:14      - "5432:5432"15 16  # Servicio 2: Tu Backend FastAPI17  backend:18    build: .19    command: uvicorn main:app --host 0.0.0.0 --port 7860 --reload20    volumes:21      - .:/app  # ¡Esto permite que si editas código en Windows, se actualice en Docker!22    ports:23      - "7860:7860"24    environment:25      # OJO: Aquí el host no es 'localhost', es 'db' (el nombre del servicio de arriba)26      - DATABASE_URL=postgresql://ghost_user:ghost_password@db/ghost_kitchen_db27    depends_on:28      - db29 30volumes:31  postgres_data:32