Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 739 Bytes

README.md

File metadata and controls

51 lines (36 loc) · 739 Bytes

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