IP info page with geoip detection. Written in PHP, built with Twig, Bootstrap and GeoIP2.
1.7K
Maintained by: c0m4r
Project website: https://github.com/c0m4r/ip-info-page
Where to get help: Github Issues
Dockerfile linksFROM alpine:3.19
WORKDIR /var/www/html
RUN apk add --no-cache git nginx php83 php83-curl php83-fpm php83-mbstring php83-openssl php83-phar wget \
&& adduser -D ipp \
&& git clone https://github.com/c0m4r/ip-info-page.git . \
&& rm -rfv .git .github .gitignore docker-compose.yml \
&& chown -R ipp:ipp /var/www/html \
&& mv .docker/nginx/conf.d/default.conf /etc/nginx/http.d/default.conf \
&& sed -i 's/php-fpm/127.0.0.1/g;' /etc/nginx/http.d/default.conf \
&& apk del --no-cache git \
&& rm -rfv .docker \
&& wget --progress=bar:force https://getcomposer.org/download/2.6.6/composer.phar \
&& echo "72600201c73c7c4b218f1c0511b36d8537963e36aafa244757f52309f885b314 composer.phar" | sha256sum -c || rm composer.phar
EXPOSE 80
CMD [ "/bin/sh", "-c", "php83 composer.phar update && nginx && php-fpm83 -F" ]
IP Info page with geoip detection. Written in PHP, built with Twig, Bootstrap and GeoIP2. Supports CloudFlare.
PHP | Composer | geoip2/geoip2 | twbs/bootstrap | twig/twig | Globe Africa icon by Icons8
Quick setup:
docker run --name ipp -p 127.0.0.1:8080:80 -d c0m4r/ip-info-page
To use GeoIP2 module, download GeoIP2 Lite database and mount it as a volume.
docker run --name ipp -v ./GeoLite2-City.mmdb:/var/www/html/GeoLite2-City.mmdb -p 127.0.0.1:8080:80 -d c0m4r/ip-info-page
Next, visit: http://localhost:8080
An example docker-compose.yml:
version: '3.9'
services:
ipp:
image: c0m4r/ip-info-page:latest
ports:
- '8080:80'
volumes:
- ./GeoLite2-City.mmdb:/var/www/html/GeoLite2-City.mmdb
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.
If you found this software helpful, please consider making donation to a charity on my behalf. Thank you.
Content type
Image
Digest
sha256:0f0675d63…
Size
12.5 MB
Last updated
over 2 years ago
docker pull c0m4r/ip-info-page