# Network Scanner - Docker Setup ## Quick Start 1. **Build and start all services:** ```bash docker-compose up -d --build ``` 2. **Access the application:** - Frontend: http://localhost - Backend API: http://localhost:8000 - API Documentation: http://localhost:8000/docs 3. **View logs:** ```bash docker-compose logs -f ``` 4. **Stop services:** ```bash docker-compose down ``` ## Services ### Backend - FastAPI application running on port 8000 - Network scanning capabilities - WebSocket support for real-time updates - SQLite database stored in `./data/` volume ### Frontend - React application served by Nginx on port 80 - Proxy configuration for API requests - Production-optimized build ## Volumes - `./data` - Database persistence - `./logs` - Application logs ## Network Scanning The backend container has network scanning capabilities with: - nmap installed - Socket-based scanning - Service detection ## Development To rebuild after code changes: ```bash docker-compose up -d --build ``` To rebuild specific service: ```bash docker-compose up -d --build backend docker-compose up -d --build frontend ``` ## Troubleshooting **Check service status:** ```bash docker-compose ps ``` **View backend logs:** ```bash docker-compose logs backend ``` **View frontend logs:** ```bash docker-compose logs frontend ``` **Restart services:** ```bash docker-compose restart ``` **Clean everything:** ```bash docker-compose down -v docker system prune -a ```