Local Development with Docker
This guide covers how to set up and run the CodeNull AI Backend locally using Docker for development and testing.Building the Docker Image
To create a Docker image from your CodeNull AI Backend source code:codenull-ai-backend using the Dockerfile in the current directory.
Running the Container Locally
Once you’ve built the image, you can run it as a container:- Creates a container named
codenull-ai-backend - Maps port 8000 on your host to port 8000 in the container
- Runs the container in detached mode (
-d)
Checking Container Status
To verify that your container is running:codenull-ai-backend in the list.
Viewing Container Logs
To see the logs from your container:-f flag to follow the logs in real-time:
Stopping the Container
When you’re done, you can stop the container:Accessing the API
With the container running, you can access:- API documentation at http://localhost:8000/docs
- Health check endpoint at http://localhost:8000/health
Next Steps
After successfully running the application locally:API Reference
Explore all available API endpoints and documentation
Azure Container Apps
Deploy your application to Azure Cloud
Production Deployment
Learn how to prepare for production environments
Monitoring
Set up monitoring for your deployed application