Network Automated Inspection Platform
102
Automated network inspection platform — one-stop network device inspection, config backup, report generation & web dashboard.
# 1. Create directories and database file
mkdir -p /opt/inspection/configs /opt/inspection/reports /opt/inspection/logs
touch /opt/inspection/inspection.db
chmod 666 /opt/inspection/inspection.db
# 2. Create docker-compose.yml
cat > /opt/inspection/docker-compose.yml << 'EOF'
services:
inspection:
image: ivanliyang/network1-inspection:latest
container_name: network1-inspect
restart: unless-stopped
ports:
- "9001:8000"
environment:
- INSPECT_SECRET_KEY=${INSPECT_SECRET_KEY:-}
- INSPECT_DB_PATH=/app/inspection.db
- PYTHONUNBUFFERED=1
volumes:
- ./configs:/app/configs
- ./reports:/app/reports
- ./logs:/app/logs
- ./inspection.db:/app/inspection.db
EOF
# 3. Start
cd /opt/inspection && docker compose up -d
Open: http://localhost:9001
# Linux / macOS
docker run -d \
--name network-inspection \
--restart unless-stopped \
-p 8000:8000 \
-e INSPECT_DB_PATH=/app/inspection.db \
-e PYTHONUNBUFFERED=1 \
-v $(pwd)/configs:/app/configs \
-v $(pwd)/logs:/app/logs \
-v $(pwd)/reports:/app/reports \
-v $(pwd)/inspection.db:/app/inspection.db \
ivanliyang/network1-inspection:latest
# Windows PowerShell
docker run -d `
--name network-inspection `
--restart unless-stopped `
-p 8000:8000 `
-e INSPECT_DB_PATH=/app/inspection.db `
-e PYTHONUNBUFFERED=1 `
-v ${PWD}/configs:/app/configs `
-v ${PWD}/logs:/app/logs `
-v ${PWD}/reports:/app/reports `
-v ${PWD}/inspection.db:/app/inspection.db `
ivanliyang/network1-inspection:latest
Open: http://localhost:8000
| Username | Password | Role |
|---|---|---|
admin | 123.com | Administrator |
The default admin account is created automatically on first startup. Change the password after first login.
| Variable | Required | Description |
|---|---|---|
INSPECT_DB_PATH | Yes | Database file path inside container, e.g. /app/inspection.db |
INSPECT_SECRET_KEY | No | Encryption key for device passwords (auto-generated if not set) |
PYTHONUNBUFFERED | No | Set 1 for real-time log output |
| Port | Description |
|---|---|
| 8000 | Web UI & REST API |
| Path | Description |
|---|---|
/app/configs | Device configs, inspection templates, connection params |
/app/logs | Runtime logs |
/app/reports | Inspection reports (Excel/PDF/HTML) |
/app/inspection.db | SQLite database (persist data) |
docker pull ivanliyang/network1-inspection:latest