Sign inSign up

c0m4r/ip-info-page

By c0m4r

•Updated 5 days ago

IP info page with geoip detection. Written in PHP, built with Twig, Bootstrap and GeoIP2.

Image
0

1.8K

c0m4r/ip-info-page repository overview

⁠Quick reference

Maintained by: c0m4r⁠

Project website: https://github.com/c0m4r/ip-info-page⁠

Where to get help: Github Issues⁠

⁠What is ip-info-page?

IP Info page with geoip detection. Written in PHP, built with Twig, Bootstrap and GeoIP2. Supports CloudFlare.

image

⁠Dependencies

PHP⁠ | Composer⁠ | geoip2/geoip2⁠ | twbs/bootstrap⁠ | twig/twig⁠ | Globe Africa⁠ icon by Icons8⁠

⁠How to use this image

Quick setup:

docker run --name ipp -d -p 127.0.0.1:8080:8080 --read-only --tmpfs /tmp \
  --cap-drop ALL --security-opt no-new-privileges \
  c0m4r/ip-info-page:2.0.0@sha256:21dc37ce333c886b80a4968f22e2133ce731ee8e0136565a9ba11bd3298e98ef

To use GeoIP2 module, download GeoIP2 Lite database⁠ and mount it as a volume.

docker run --name ipp -d -p 127.0.0.1:8080:8080 -v ./GeoLite2-City.mmdb:/var/www/html/GeoLite2-City.mmdb --read-only --tmpfs /tmp \
  --cap-drop ALL --security-opt no-new-privileges \
  c0m4r/ip-info-page:2.0.0@sha256:21dc37ce333c886b80a4968f22e2133ce731ee8e0136565a9ba11bd3298e98ef

Next, visit: http://localhost:8080

⁠Docker compose

An example docker-compose.yml:

services:
  ipp:
    image: c0m4r/ip-info-page:2.0.0@sha256:21dc37ce333c886b80a4968f22e2133ce731ee8e0136565a9ba11bd3298e98ef
    ports:
      - '8080:80'
    volumes:
      - ./GeoLite2-City.mmdb:/var/www/html/GeoLite2-City.mmdb

⁠License

MIT License

Copyright (c) 2023 c0m4r

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.

⁠Funding

If you found this software helpful, please consider making donation⁠ to a charity on my behalf. Thank you.

Tag summary

Content type

Image

Digest

sha256:21dc37ce3…

Size

46.3 MB

Last updated

5 days ago

docker pull c0m4r/ip-info-page