Code Monkey home page Code Monkey logo

docker-overpass-api's Introduction

UNMAINTAINED

Warning, this repo is no longer maintained. If you want write-access to it, don't hesitate to ask me.

Cheers.

Overpass API docker image

What is it ?

Its actually a full install of the overpass api server. It supports:

How to run using standard Docker commands

You can simply build the Docker image by docker build -t overpass_api . and the run the docker container by docker run -d --restart=always -v <PATH TO THE OVERPASS DB ON HOST>:/overpass_DB -p 80:80 overpass_api. NOTE: After the server start up you have to wait several minutes (or hours depending on the planet size) until the DB is loaded. In order to check the status you can use docker logs command.

How to run using makefile

The easiest way is to simply type make. I don't know about docker volumes, so the makefile specifies where the DB should be stored on your server. By default, the path is /mnt/ssd/overpass_DB. You can change this path by changing the conf.sh file (or you can use docker volumes if you know how to).

Also, you can specify a different bind port for the web interface by changing the SERVER_HTTP_PORT variable (still in conf.sh). That means that it will be accessible at your server's IP, port 5001. You can change that to 80, 8080 or any other number if you use a proxy between the internet and your docker web instances.

How long will it take

First you have to download the planet.osm image. It weighs about 54G. Depending on your connection it may be as quick as three hours. On my server (16Gb of ram, [email protected], SSD), the initial export took ~ 40hours, then about 24h to get to the actual replication state (it is usable after the 40 hours, even if the server is behind state). The whole clone weighs about 240Gb.

More things to tweak

You can add your custom web pages to the www directory and change your domain/email address on the conf.sh file.

Also, if you don't live "network-near" Germany, you could additionally change the FTP server in the conf.sh file.

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.