Overview
Theports section validates that specific network ports are available for use. This prevents conflicts when your application tries to bind to ports already in use by other services.
Configuration
Theports field is a simple array of port numbers (src/config.rs:14):
List of port numbers to check for availability. Each port should be a number between 1 and 65535.
Format
Ports are specified as a simple YAML array:Examples
Single Port
Check that a single port is available:Multiple Ports
Check multiple ports used by your application and services:With Comments
YAML comments help document which service uses each port:Real-World Examples
Common Port Numbers
Here are commonly used port numbers for development:| Port | Service |
|---|---|
| 3000 | Node.js/Next.js/Rails dev servers |
| 3001 | Alternative Node.js port |
| 4200 | Angular dev server |
| 5000 | Flask default port |
| 5173 | Vite dev server |
| 5432 | PostgreSQL |
| 6379 | Redis |
| 8000 | Django dev server |
| 8080 | Common HTTP alternative |
| 8888 | Jupyter Notebook |
| 9200 | Elasticsearch |
| 27017 | MongoDB |
Validation Behavior
Port checks verify that ports are available (not in use). Validation will fail if:- A port is already bound by another process
- The port number is invalid (< 1 or > 65535)
- Insufficient permissions to check the port (typically ports < 1024 require elevated privileges)
No Port Checks
If your project doesn’t need to validate port availability, simply omit theports section entirely:
ports field defaults to an empty array when not specified.