Skip to content

jakewmeyer/ifconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ifconfig - Public IP address API

cicd

Usage

Plaintext

curl -s 'https://ifconfig.jakemeyer.sh'
192.168.1.1

JSON

curl -s 'https://ifconfig.jakemeyer.sh/json' | jq
{"ip":"192.168.1.1"}

Setup

Docker Compose v3+

docker-compose.yml

services:
  ifconfig:
    container_name: "ifconfig"
    image: ghcr.io/jakewmeyer/ifconfig:latest
    ports:
      - "7000:7000"
    restart: "unless-stopped"
docker-compose up

Docker run

docker run -p 7000:7000 ghcr.io/jakewmeyer/ifconfig:latest