/piplogger

Logs changes in the public IP egress of a docker container

Primary LanguageShellMIT LicenseMIT

piplogger

Log all public ip egress changes observed by this container. The frequency of which the container checks is every 90 seconds. A limitation implemented due to api restrictions. This is useful for scenarios where the public ip might be dynamic and you wish to know the datetime that the ip has changed.

Deploying the image

  • Logs will be stored in the specified volume and retained for 30 days
version: "3.8"
services:
  piplogger:
    image: ghcr.io/thetaylorlee/piplogger:latest
    container_name: piplogger
    volumes:
      - /home/user/docker/appdata/piplogger/logs:/piplogger/logs
    restart: unless-stopped
  • To log changes in the public ip egress of another container, add the service network mode option to the compose file.
    network_mode: service:<container name>