You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-9Lines changed: 21 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ n7m is Nominatim packaged in Docker images with separation of responsibilities b
9
9
## Overview
10
10
This set of Docker images seperates responsbility into 5 areas:
11
11
***n7m-app** - The main Nomainatim service running Apache/PHP connecting to `n7m-gis`
12
-
***feed** - Uses the `n7m-app` image to set up the `n7m-gis` database. Can also be used for updates and downloading OSM files.
12
+
***feed** - Uses the `n7m-app` image to set up the `n7m-gis` database. Can also be used for updates and downloading files.
13
13
***n7m-test** - Runs all unit tests
14
14
***n7m-gis** - Postgis database
15
15
***n7m-ui** - Test web user interface
@@ -50,14 +50,15 @@ This set of Docker images seperates responsbility into 5 areas:
50
50
## To Use
51
51
1. Build all the images:
52
52
*`docker-compose build`
53
-
2. Download the desired OSM files:
54
-
* To download Monaco, Wikimedia data and country grids:
55
-
*`docker-compose run feed download --monaco --wiki --grid`
56
-
3. Edit the OSM_FILENAME environment varianble in `docker-compose.yml` file to select the downloaded OSM file.
57
-
* The default is monaco-latest.osm.pbf
58
-
4. Run `docker-compose up`
53
+
2. Download Wikimedia data and country grids (optional):
54
+
*`docker-compose run feed download --wiki --grid`
55
+
3. Download OSM Data. We recommend [openmaptiles-tools](https://github.com/openmaptiles/openmaptiles-tools). For Monaco:
56
+
*`docker run -v $PWD/data:/tileset openmaptiles/openmaptiles-tools download-osm monaco`
57
+
4. Edit the OSM_FILENAME environment varianble in `docker-compose.yml` file to select the downloaded OSM file.
58
+
* The default is `monaco-latest.osm.pbf` which was downloaded in step 3.
59
+
5. Run `docker-compose up`
59
60
* Since the import process is long, the `n7m-app` container terminates after 10 seconds. Run `docker-compose up` again after import so it restarts.
60
-
5. Browse to: `http://localhost:8080`
61
+
6. Browse to: `http://localhost:8080`
61
62
62
63
## Additional Commands
63
64
1. To reset the database:
@@ -75,13 +76,19 @@ For updates, consider these configurations:
75
76
* NOMINATIM_REPLICATION_URL - you will want to set this to a closer mirror.
76
77
77
78
## Ubuntu vs Debian
78
-
`debian:bullseye-slim` was selected as the base image as it is slightly smealler than `ubuntu:focal` and supports PoostgreSQL 13. Versions that are included below (at the time of this writing):
79
+
`ubuntu:jammy` was selected as the base image for branch image as to begin testing the lastest LTS release. Versions that are included below (at the time of this writing):
79
80
*`debian:bullseye-slim`
80
81
* 454MB Image for `n7m-app`
81
82
* Python 3.9.2, PHP 7.4.28, psql 13.7
82
83
*`ubuntu:focal`
83
84
* 485MB Image for `n7m-app`
84
85
* Python 3.8.10, PHP 7.4.3, psql 12.11
86
+
*`debian:bookworm-slim` (not released)
87
+
* 501MB Image for `n7m-app`
88
+
* Python 3.10.5, PHP 8.1.5, psql 14.4
89
+
*`ubuntu:jammy`
90
+
* 528MB Image for `n7m-app`
91
+
* Python 3.10.4, PHP 8.1.2, psql 14.3
85
92
86
93
## Advanced Tokenizer
87
94
This image only uses the ICU Tokenizer. By default the included `tokenizer.php` file drives the PHP code and has a simple English tokenizer.
@@ -102,3 +109,8 @@ To run n7m in AWS, the minimum EC2 Instance sizing is:
102
109
* Storage: 500GB SSD (270G required for North America)
103
110
104
111
Note: At 16 GB RAM, `t3.xlarge` is too small and runs out of memory for osm2pgsql during a North America test.
0 commit comments