Minimalistic Docker images for Nominatim
2.2K
Minimalistic Docker images for Nominatim
n7m is a Numeronym for Nominatim.
n7m is Nominatim packaged in Docker images with separation of responsibilities between housing the web server, ui, applicaiton server, setup processes and PostgreSQL.
This set of Docker images seperates responsbility into 5 areas:
n7m-gis
n7m-app image to set up the n7m-gis database. Can also be used for updates and downloading files.n7m-app @ path: /api/v4/n7m-ui @ path: / |
v 8080
+--------------+ +--------------+
| | | |
| n7m-web |----->| n7m-ui |
| | 80 | |
+--------------+ +--------------+
| nginx | | nginx |
+--------------+ +--------------+
|
v 8000
+--------------+ +--------------+
| | | |
| n7m-app | | feed |
| | | |
+--------------+ +--------------+
| ubuntu:jammy | | n7m-app |
+--------------+ +--------------+
| | |
v 5432 v v
/--------\ +-----------------+ /--------\
| volume |<--| | | volume |
| pgdata | | n7m-gis | | data |
\--------/ + + \--------/
|-----------------+
| postgis/postgis |
+-----------------+
docker-compose builddocker-compose run feed download --wiki --griddocker run -v <path to working dir>/data:/tileset openmaptiles/openmaptiles-tools download-osm monacodocker-compose.yml file to select the downloaded OSM file.
monaco-latest.osm.pbf which was downloaded in step 3.docker-compose up
n7m-app container terminates after 10 seconds. Run docker-compose up again after import so it restarts.http://localhost:8080docker-compose run feed resetdocker-compose run feed setupdocker-compose run feed updatedocker-compose run feed replicationFor updates, consider these configurations:
To run n7m in AWS, the minimum EC2 Instance sizing is:
m5.4xlarge - 64 GB RAM, 16 vCPUsm5.4xlarge - 64 GB RAM, 16 vCPUs, 0.768/Hour
m5.8xlarge - 128 GB RAM, 32 vCPUs, 1.536/Hour
Content type
Image
Digest
sha256:44f38fe7e…
Size
184.7 MB
Last updated
almost 2 years ago
docker pull smithmicro/n7m-app