Skip to content

abc3660170/startosm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

startosm

thanks for Overv's demo and think8848

First your OS must suport Docker

install startOSM

docker pull abc3660170/startosm

careate shared database volume

docker volume create --driver local --opt type=nfs --opt device=/path/to/pgdata --opt o=bind --name pgdata

careate tilescache volume

docker volume create --driver local --opt type=nfs --opt device=/path/to/tilescache --opt o=bind --name tilescache

import pbf data

docker run --rm -it -e MAX_MEM=6000 -v pgdata:/home/pgdata -v /absolutePath/to/XXXX.pbf:/data.osm.pbf abc3660170/startosm import

ENV:

1. MAX_MEM : The maximum memory you can allocate
1. THREADS :Set Configure according to the CPU cores number
1. SHARED_BUFFER : PG database configure
1. WORK_MEM :PG database configure
1. MAINTENANCE_WORK_MEM :PG database configure
1. EFFECTIVE_CACHE_SIZE :PG database configure

PBF file download from https://download.geofabrik.de/

start tileserver

docker run  -p 3000:3000 -e THREADS=2 -d -v pgdata:/home/pgdata -v tilescache:/home/tilecache --name osmserver abc3660170/startosm run

If tileserver startup,you can access: http://ip:3000/test.html

ref 9 docker images I mad

abc3660170/gcc

abc3660170/boost

abc3660170/mapnik

abc3660170/pg

abc3660170/osm2pgsql

abc3660170/osmstyle

abc3660170/nodemapnik

abc3660170/font

abc3660170/startosm

About

Host your openstreetmap docker server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published