Skip to content
NodeJS Application that displays client's public IP address
JavaScript Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.dockerignore
.gitignore
.jshintrc
Dockerfile
README.md
docker-compose.debug.yml
docker-compose.yml
logger.js
package-lock.json
package.json
server.js

README.md

What Is My IP

NodeJS application that displays client's public IP address.

Detailed writeup is posted on my blog here

Prerequisites

NodeJS + NPM
Docker

Setup

Development

npm install
npm run dev

Production

docker load -i what-is-my-ip_docker.tar
docker run -d -e NODE_ENV='production' -p 9002:9002 -v <LOCAL LOG LOCATION>:/usr/src/app/logs --name what-is-my-ip what-is-my-ip:latest

NPM Run Scripts

Script Description
dev Runs application in nodemon
build Creates docker image
docker-start Build docker image and start container locally
dist Create distribution docker tar file
cleanup Remove development files
You can’t perform that action at this time.