Version 5 (modified by 3 years ago) (diff) | ,
---|
Opendistro
Create openstreetmap to own host for use need to follow here
- create volume
docker volume create openstreetmap-data
- mkdir folder in working directory
mkdir openstreetmap-data and download thailand-latest.osm.pbf from [http://161.246.35.199/~krit here] [[br]]
- create database map
docker run \ -v /home/kt/Documents/Dockers/OpenStreetMap/thailand-latest.osm.pbf:/data.osm.pbf \ -v /home/kt/Documents/Dockers/OpenStreetMap/openstreetmap-data:/var/lib/postgresql/12/main \ overv/openstreetmap-tile-server \ import
- after done, we can remove docker that create DB for map. Then, we start map service. We can increase thread (use 4 threads by default) and 800 MB RAM cache by default, but we can increase 4096 MB for cache memory
docker run \ -p 8080:80 \ -e THREADS=24 \ -v openstreetmap-data:/var/lib/postgresql/12/main \ -d overv/openstreetmap-tile-server \ run #docker run \ # -p 8080:80 \ # -e "OSM2PGSQL_EXTRA_ARGS=-C 4096" \ # -v openstreetmap-data:/var/lib/postgresql/12/main \ # -d overv/openstreetmap-tile-server \ # run
Run docker-compose up from attach docker-compose.yml
docker-compose up -d
Attachments (2)
- opendistro.tar.gz (18.3 MB) - added by 3 years ago.
- configMap.png (494.4 KB) - added by 3 years ago.
Download all attachments as: .zip