Small server written in go exposing a single API displaying inbound & outbound IP
853
Small server written in go exposing a single API displaying inbound & outbound IP
Environment variables :
| name | description |
|---|---|
| PORT | server port |
| HOSTNAME | hostname to check inbound ip |
docker run -p 4242:4242 -e PORT=4242 -e HOSTNAME=example.com -it bertrandmartel/external-ip
docker build . -t external-ip
docker run -p 4242:4242 -e PORT=4242 -e HOSTNAME=example.com -it external-ip
go install
go run ./main.go
or
go install
go build
./external-ip
Content type
Image
Digest
Size
157.4 MB
Last updated
over 5 years ago
docker pull bertrandmartel/external-ip