Initial commit: Werkzeuge-Sammlung
Enthält: - rdp_client.py: RDP Client mit GUI und Monitor-Auswahl - rdp.sh: Bash-basierter RDP Client - teamleader_test/: Network Scanner Fullstack-App - teamleader_test2/: Network Mapper CLI Subdirectories mit eigenem Repo wurden ausgeschlossen. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
89
teamleader_test/docs/setup/docker.md
Normal file
89
teamleader_test/docs/setup/docker.md
Normal file
@@ -0,0 +1,89 @@
|
||||
# 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
|
||||
```
|
||||
Reference in New Issue
Block a user