{"id":25660087,"url":"https://github.com/gpproton/nominatim","last_synced_at":"2025-04-19T17:44:00.310Z","repository":{"id":143727654,"uuid":"381515884","full_name":"gpproton/nominatim","owner":"gpproton","description":"Docker image for easy deployment to docker compose or swarm","archived":false,"fork":false,"pushed_at":"2021-09-14T12:48:49.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T19:12:40.439Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gpproton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-29T22:50:50.000Z","updated_at":"2023-08-04T09:29:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"90c12f07-35f0-41aa-bf58-12d97142c3c6","html_url":"https://github.com/gpproton/nominatim","commit_stats":null,"previous_names":["gpproton/nominatim"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpproton%2Fnominatim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpproton%2Fnominatim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpproton%2Fnominatim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpproton%2Fnominatim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gpproton","download_url":"https://codeload.github.com/gpproton/nominatim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249751779,"owners_count":21320372,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-24T01:32:24.856Z","updated_at":"2025-04-19T17:44:00.287Z","avatar_url":"https://github.com/gpproton.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nominatim compose/swarm easy setup\n\nA docker compose easy nominatim geocoder setup.\n\n## Requirements\n\n- docker\n- docker compose\n\n## Run setup script\n\n```bash\ngit clone https://github.com/gpproton/nominatim-africa-setup.git\n```\n\n```yml\nversion: \"3\"\nservices:\n  geocoder:\n    image: gpproton/nominatim-nigeria-ghana\n    volumes:\n      - ./backups/:/srv/nominatim/backups/:rw\n    environment:\n      # RESTORE | CREATE\n      - \"NOMINATIM_MODE=CREATE\"\n      - \"NOMINATIM_PBF_URL=https://storage.11s.cloud/osm/nigeria-ghana-2021-06.osm.pbf\"\n    deploy:\n      mode: replicated\n      replicas: 1\n      restart_policy:\n        condition: on-failure\n        max_attempts: 3\n      update_config:\n        parallelism: 1\n        delay: 30s\n      resources:\n        limits:\n          cpus: \"1.5\"\n          memory: 2G\n        reservations:\n          cpus: \"0.1\"\n          memory: 100M\n    ulimits:\n      rtprio: 95\n      memlock: -1\n      nproc: 1024000\n      nofile:\n        soft: 1024000\n        hard: 1024000\n    healthcheck:\n      test: [\"CMD-SHELL\", \"pg_isready -U postgres\"]\n      interval: 1m\n      timeout: 3m\n      retries: 5\n    ports:\n      - \"8080:8080\"\n```\n\n## Build and run container instance\n\n```bash\ndocker-compose --compatibility build --no-cache \u0026\u0026 docker-compose --compatibility up -d\n```\n\n## Monitor log for instance\n\n```bash\ndocker-compose --compatibility logs -f\n```\n\n## Test reverse geocode\n\n```bash\ncurl 'http://localhost:8080/reverse.php?format=json\u0026lat=7.6878561826248\u0026lon=6.3472389957393\u0026zoom=16'\n```\n\n`Expected output.`\n\n```json\n{\n  \"place_id\": 279698,\n  \"licence\": \"Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright\",\n  \"osm_type\": \"way\",\n  \"osm_id\": 194738931,\n  \"lat\": \"7.68726177198402\",\n  \"lon\": \"6.3491445347232975\",\n  \"display_name\": \"Okehi, Kogi, Nigeria\",\n  \"address\": {\n    \"county\": \"Okehi\",\n    \"state\": \"Kogi\",\n    \"country\": \"Nigeria\",\n    \"country_code\": \"ng\"\n  },\n  \"boundingbox\": [\"7.6338249\", \"7.6965915\", \"6.3301211\", \"6.3506716\"]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgpproton%2Fnominatim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgpproton%2Fnominatim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgpproton%2Fnominatim/lists"}