Sign inSign up

sntshk/dyn-ip-monitor

By sntshk

Updated about 2 years ago

a simple service which fetches your public IP

Image
Networking
0

1.6K

sntshk/dyn-ip-monitor repository overview

dyn-ip-monitor

If your ISP has alloted you dynamic IP and you want to know how often it changes, and it what range, you are at the right place.

dyn-ip-monitor is a very simple service which fetches you public IP and stores it in mongo database.

Overview

It stores the entries in dynip database and the collection is ip_log.

Environment Variable
  • MONGODB_URI - connection string to the database
  • INTERVAL - sleep time between execution
  • TZ - without this, it will fallback to UTC in your db entries

How to use

Note: This app is in alpha, and right now I'm married to my setup. I'm running docker in swarm mode, and I have a central mongodb server. Contributions are welcomed, but right now I'll focus on MVP.

Right now, I pass following spec in portainer to create a stack:

version: '3.8'

services:
  server:
    image: sntshk/dyn-ip-monitor
    environment:
      - INTERVAL=900  # 15 mins
      - TZ=Asia/Kolkata

Tag summary

Content type

Image

Digest

sha256:efc62a7b6

Size

375.9 MB

Last updated

about 2 years ago

docker pull sntshk/dyn-ip-monitor