Spaces:
Sleeping
Sleeping
Running the RAG Chat Application in Docker
This document provides instructions for building and running the RAG Chat Application using Docker.
Prerequisites
- Docker installed on your system
- Docker Compose installed on your system
Building and Running the Application
- Make sure you have a valid OpenAI API key in your
.envfile:
OPENAI_API_KEY=your_openai_api_key
- Build and run the application using Docker Compose:
docker-compose up --build
This command will:
- Build the frontend with the shadcn/ui components and Tailwind CSS
- Build the Python backend
- Start the application on port 8000
- Access the application in your browser:
http://localhost:8000
Stopping the Application
To stop the application, press Ctrl+C in the terminal where Docker Compose is running, or run:
docker-compose down
Troubleshooting
If you encounter any issues:
- Check the Docker logs for errors:
docker-compose logs
Make sure your
.envfile contains a valid OpenAI API key.Ensure ports 8000 is available on your system.
If you make changes to the frontend code, you may need to rebuild the Docker image:
docker-compose up --build