Mimicking the functionality of icanhazip.com. Easily deployable with Docker.
536
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.
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.
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
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.
You can find the source code and contribute to the project at GitHub.
The Docker image is available on Docker Hub at thejordanprice/icanhazip-clone.
Content type
Image
Digest
sha256:3c92cfcae…
Size
49.4 MB
Last updated
about 2 years ago
docker pull thejordanprice/icanhazip-clone