Giter VIP home page Giter VIP logo

ip2location / docker-ip2location-postgresql Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 2.0 24 KB

This is a pre-configured, ready-to-run PostgreSQL with IP2Location Geolocation database setup scripts. It simplifies the development team to install and set up the geolocation database in PostgreSQL.

Home Page: http://www.ip2location.com

Shell 97.29% Dockerfile 2.71%
geolocation geolocation-database ip-address-location ip-database ip-geolocation ip-lookup ip2location postgresql

docker-ip2location-postgresql's People

Contributors

ip2location avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

vincnetas jvrck

docker-ip2location-postgresql's Issues

Successfully initialized but no data

Hi, I've tried this image out with dataset DB1LITE, DB3LITE and end up there're zero rows in the database.

Docker compose settings

  ip2location:
    container_name: ip2locationpg
    image: ip2location/postgresql
    ports:
      - "5432:5432"
    environment:
      - POSTGRESQL_PASSWORD=postgres
      - TOKEN=xxxxxxxx
      - CODE=DB3LITE

Container logs

ip2locationpg  |  > Create directory /_tmp [OK]
ip2locationpg  |  > Download IP2Location package  > Decompress downloaded package [OK]
ip2locationpg  |  > [PostgreSQL] Create database "ip2location_database" [OK]
ip2locationpg  |  > [PostgreSQL] Create table "ip2location_database_tmp" [OK]
ip2locationpg  |  > [PostgreSQL] Import CSV data into "ip2location_database_tmp" [OK]
ip2locationpg  |  > [PostgreSQL] Drop table "ip2location_database" 
ip2locationpg  | [OK]
ip2locationpg  |  > [PostgreSQL] Rename table "ip2location_database_tmp" to "ip2location_database" 
ip2locationpg  | [OK]
ip2locationpg  |  > [PostgreSQL] Update PostgreSQL password for user "postgres" 
ip2locationpg  | NOTICE:  function inet_to_bigint(inet) does not exist, skipping
ip2locationpg  |  > Setup completed
ip2locationpg  | 
ip2locationpg  |  > You can now connect to this PostgreSQL Server using:
ip2locationpg  | 
ip2locationpg  |    psql -h HOST -p PORT --username=postgres
ip2locationpg  |    Enter the password 'postgres' when prompted
ip2locationpg  | 

Query row counts from the database

ip2location_database=# SELECT COUNT(*) FROM ip2location_database;
 count 
-------
     0
(1 row)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.