Maps have a decent role in visualizing movement, activities, culture etc. But using a map for your application is always lead to taking subscriptions or spending huge money altogether. Open street map offline future is very hand in such situations. Let's see how to deploy an open street map API in your system using docker. Pre-requisites: a piece of basic knowledge in docker Let's deploy one. First, we have to download the portion of the map we want to deploy ( you can download the entire map if you wish but here I am using a chunk from it.) First, we need to create a folder in our system so that we can save the map (represented as a number of tiles) into that. Step 1: // Creating a volume and naming it "openstreetmap-data" docker volume create openstreetmap-data Step 2: //Next download the map from geofabrik.de, I downloaded a map of India. //for that download map data such as india-latest.osm.pbf and extract from geofabrik.de // let's install it and render th
Prerequisites 1. Docker and docker-compose. > apt-get install docker > apt-get install docker-compose In Centos, > yum install docker-compose > yum install docker-compose 2. Nginx , command: apt-get install nginx. In Centos, >yum install nginx 3. Self -Signed SSL certificate for Nginx. 4. apache2-utils to restrict image access using user name and password. command: apt-get install apache2-utils In Centos, > yum install httpd-tools 5. Nano editor (you can use any editor you like). Command: apt-get install nano In Centos, > yum install nano Let's Begin, First, we need to create a docker-registry to keep images and authentication data. 1. Let's create a docker-registry directory and data,auth directories inside root. > mkdir ~/docker-registry && cd $_ > mkdir data > mkdir auth Now create a docker-compose.yml file and add the following content //Creating a docker-compos