https://github.com/hackmdio/portchecker
A lightweight tool for checking port is open
https://github.com/hackmdio/portchecker
docker-utility health-check
Last synced: 2 months ago
JSON representation
A lightweight tool for checking port is open
- Host: GitHub
- URL: https://github.com/hackmdio/portchecker
- Owner: hackmdio
- Created: 2019-04-19T10:00:10.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-17T08:42:15.000Z (over 3 years ago)
- Last Synced: 2025-10-20T04:50:29.278Z (6 months ago)
- Topics: docker-utility, health-check
- Language: Go
- Size: 20.5 KB
- Stars: 9
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# portchecker
portchecker is a simple application to check the port of host is connectable or not
## Usage
```
portchecker [-constr connection string] [-env environment-variable-name] [-attempt maximum-attempt-times] [-wait connection-failed-waiting-time]
-constr connection string under test
example:
tcp://127.0.0.0.1:1234
postgres://localhost/test
mysql://testuser:password@mysql-host.local:1234
redis://localhost
-env environment variable name
example:
DB_URL
REDIS_URL
-attempt how many times to try, default: 5 times
-wait wait how many time to try next time, default: 3s
```