Sign inSign up

thejordanprice/icanhazip-clone

By thejordanprice

•Updated about 2 years ago

Mimicking the functionality of icanhazip.com. Easily deployable with Docker.

Image
Networking
Developer tools
Web servers
0

536

thejordanprice/icanhazip-clone repository overview

⁠icanhazip-clone

A simple Flask-based web application that returns the client's IP address in plain text, mimicking the functionality of icanhazip.com. Easily deployable with Docker.

⁠Getting Started

⁠Prerequisites
  • Docker
  • Docker Compose
⁠Running the Docker Image

You can run the Docker image directly using the following command:

docker run -d -p 80:80 thejordanprice/icanhazip-clone

This will start the web application on port 80.

⁠Running with Docker Compose

Alternatively, you can use Docker Compose to run the application. First, create a docker-compose.yml file with the following content:

version: '3'
services:
  icanhazip-clone:
    image: thejordanprice/icanhazip-clone
    ports:
      - "80:80"

Then, run the following command to start the application:

docker-compose up -d

⁠Accessing the Application

Once the application is running, you can access it by navigating to http://localhost in your web browser. The application will display your IP address in plain text.

⁠Repository

You can find the source code and contribute to the project at GitHub⁠.

⁠Docker Hub

The Docker image is available on Docker Hub at thejordanprice/icanhazip-clone⁠.

Tag summary

Content type

Image

Digest

sha256:3c92cfcae…

Size

49.4 MB

Last updated

about 2 years ago

docker pull thejordanprice/icanhazip-clone