Docker compose for Nominatim tested in version 4.2
This docker image build and run Nominatim.
It´s necessary a postgres database and postgis previous configured
Build image using docker-compose build
The following environment variables are available for configuration:
PBF_URL
: Which OSM extract to download and import. Check https://download.geofabrik.deTHREADS
: How many threads should be used to import (default:16
)NOMINATIM_PASSWORD
: The password to connect to the database with (default:123456
- Please change this password)PGHOST
: Postgres hostPGPASSWORD
: Postgres passwordPGUSER
: Postgres userPGDATABASE
: postgres database name (default:nominatim
)NOMINATIM_DATABASE_DSN
: postgres string connection (e.g:pgsql:dbname=nominatim;hostaddr=173.16.238.2;user=your_user_database;password=your_password_database
)
Run image using docker-compose up
By default will run in port 8087.
If everything runs ok, You can check on http://localhost:8087/search.php?q=avenue%20pasteur
See https://nominatim.org/release-docs/4.2.0/admin/Installation/#tuning-the-postgresql-database for more details about postgreSQL tuning