PortNote(网络端口查询管理工具)简介
PortNote是一个开源的网络端口查询管理工具,能够让我们高效地跟踪和管理已使用的端口。通过一个简洁的网页界面,可以轻松实现添加服务器和虚拟机,并记录每个端口的使用情况,从而避免冲突造成的风险。
该工具基于Next.js和TypeScript构建,使用PostgreSQL作为数据库,前端框架Tailwind CSS作为为前端框架,主要功能包括:好用的仪表板界面、随机端口生成器和详细的端口文档记录。我们可以在仪表板上直观地查看当前的端口使用情况,快速识别出哪些端口已被占用。随机端口生成器可以帮助用户在创建新服务时,自动分配一个未被使用的端口,进一步简化管理过程。

PortNote(网络端口查询管理工具)官网及教程
开源地址:https://github.com/crocofied/PortNote
只需运行此compose.yml:
services:
web:
image: haedlessdev/portnote:latest
ports:
- "3000:3000"
environment:
JWT_SECRET: RANDOM_SECRET # Replace with a secure random string
USER_SECRET: RANDOM_SECRET # Replace with a secure random string
LOGIN_USERNAME: username # Replace with a username
LOGIN_PASSWORD: mypassword # Replace with a custom password
DATABASE_URL: "postgresql://postgres:postgres@db:5432/postgres"
depends_on:
db:
condition: service_started
agent:
image: haedlessdev/portnote-agent:latest
environment:
DATABASE_URL: "postgresql://postgres:postgres@db:5432/postgres"
depends_on:
db:
condition: service_started
db:
image: postgres:17
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: