An open source, self-hosted, real-time port monitoring and discovery tool.
Update README
Mostafa Wahied3274aef5de87
diff --git a/README.md b/README.mdindex d5d0126..c017c33 100644--- a/README.md+++ b/README.md@@ -10,7 +10,8 @@<p align="center"><a href="https://github.com/mostafa-wahied/portracker/blob/main/LICENSE"><img src="https://img.shields.io/github/license/mostafa-wahied/portracker?style=flat-square" alt="License"></a><a href="https://hub.docker.com/r/mostafawahied/portracker"><img src="https://img.shields.io/docker/v/mostafawahied/portracker?label=docker&style=flat-square" alt="Docker Version"></a>- <a href="https://github.com/mostafa-wahied/portracker/actions"><img src="https://img.shields.io/github/actions/workflow/status/mostafa-wahied/portracker/docker-publish.yml?style=flat-square" alt="Build Status"></a>+ <a href="https://github.com/mostafa-wahied/portracker/releases"><img src="https://img.shields.io/github/v/release/mostafa-wahied/portracker?style=flat-square" alt="Latest Release"></a>+ <a href="https://github.com/mostafa-wahied/portracker/actions"><img src="https://img.shields.io/github/actions/workflow/status/mostafa-wahied/portracker/docker-publish.yml?style=flat-square" alt="Build Status"></a></p><p align="center">@@ -23,15 +24,15 @@ By auto-discovering services on your systems, portracker provides a live, accura## Key Features-* **Automatic Port Discovery**: Scans the host system to find and display running services and their ports automatically. No manual data entry is needed.-* **Platform-Specific Collectors**: Includes specialized collectors for Docker and TrueNAS to gather rich, contextual information from the host.-* **Lightweight & Self-Contained**: Runs as a single process with an embedded SQLite database. No external database dependencies like PostgreSQL or Redis are required.-* **Peer-to-Peer Monitoring**: Add other `portracker` instances as peers to view all your servers, containers, and VMs from a single dashboard.-* **Hierarchical Grouping**: Organize servers in a parent-child structure, perfect for nesting servers, e.g. a VM's `portracker` instance under its physical host.-* **Enhanced TrueNAS Discovery**: Providing an optional TrueNAS API key allows `portracker` to discover running VMs* and gather enhanced system information like the OS version and uptime.-* **Modern & Responsive UI**: A clean dashboard with light/dark modes, live filtering, and multiple data layout views (list, grid, table).+- **Automatic Port Discovery**: Scans the host system to find and display running services and their ports automatically. No manual data entry is needed.+- **Platform-Specific Collectors**: Includes specialized collectors for Docker and TrueNAS to gather rich, contextual information from the host.+- **Lightweight & Self-Contained**: Runs as a single process with an embedded SQLite database. No external database dependencies like PostgreSQL or Redis are required.+- **Peer-to-Peer Monitoring**: Add other `portracker` instances as peers to view all your servers, containers, and VMs from a single dashboard.+- **Hierarchical Grouping**: Organize servers in a parent-child structure, perfect for nesting servers, e.g. a VM's `portracker` instance under its physical host.+- **Enhanced TrueNAS Discovery**: Providing an optional TrueNAS API key allows `portracker` to discover running VMs\* and gather enhanced system information like the OS version and uptime.+- **Modern & Responsive UI**: A clean dashboard with light/dark modes, live filtering, and multiple data layout views (list, grid, table).-<sub>\**Note: VMs discovered on TrueNAS with the optional API key are shown in read-only mode. To enable full monitoring, deploy a Portracker instance on each VM and add it as a separate server.*</sub>+<sub>\*_Note: VMs discovered on TrueNAS with the optional API key are shown in read-only mode. To enable full monitoring, deploy a Portracker instance on each VM and add it as a separate server._</sub>## Deployment@@ -42,7 +43,7 @@ Deployment is designed to be simple using Docker.Create a `docker-compose.yml` file:```yaml-version: '3.8'+version: "3.8"services:portracker:@@ -65,6 +66,7 @@ services:```Then, run the application:+```shdocker-compose up -d```@@ -90,29 +92,30 @@ docker run -d \Configure `portracker` using environment variables.-| Variable | Description | Default |-|--------------------|-----------------------------------------------------------|-------------------------|-| `PORT`* | The port the web application will run on. | `4999` |-| `DATABASE_PATH`* | Path inside the container to the SQLite database file. | `/data/portracker.db` |-| `TRUENAS_API_KEY` | Optional API key for enhanced TrueNAS data collection. | ` ` |-| `CACHE_TIMEOUT_MS` | Duration in milliseconds to cache scan results. | `60000` |-| `DISABLE_CACHE` | Set to `true` to disable all caching. | `false` |-| `INCLUDE_UDP` | Set to `true` to include UDP ports in scans. | `false` |-| `DEBUG` | Set to `true` for verbose application logging. | `false` |+| Variable | Description | Default |+| ------------------ | ------------------------------------------------------ | --------------------- |+| `PORT`\* | The port the web application will run on. | `4999` |+| `DATABASE_PATH`\* | Path inside the container to the SQLite database file. | `/data/portracker.db` |+| `TRUENAS_API_KEY` | Optional API key for enhanced TrueNAS data collection. | ` ` |+| `CACHE_TIMEOUT_MS` | Duration in milliseconds to cache scan results. | `60000` |+| `DISABLE_CACHE` | Set to `true` to disable all caching. | `false` |+| `INCLUDE_UDP` | Set to `true` to include UDP ports in scans. | `false` |+| `DEBUG` | Set to `true` for verbose application logging. | `false` |-<sub>**Required*</sub>+<sub>\*_Required_</sub>## Technical Stack-* **Backend**: Node.js, Express, WebSocket, better-sqlite3-* **Frontend**: React, Vite, Tailwind CSS, Shadcn UI-* **Containerization**: Docker+- **Backend**: Node.js, Express, WebSocket, better-sqlite3+- **Frontend**: React, Vite, Tailwind CSS, Shadcn UI+- **Containerization**: Docker## RoadmapFuture development is focused on improving the application based on community feedback. Key areas include:-* Expanding the library of platform-specific collectors for other host systems.-* Addressing bugs and incorporating requested changes from the community.++- Expanding the library of platform-specific collectors for other host systems.+- Addressing bugs and incorporating requested changes from the community.## Contributing