{"id":35062085,"url":"https://github.com/mnvoh/openstreetmap-docker","last_synced_at":"2026-04-10T11:01:23.532Z","repository":{"id":227954728,"uuid":"141464519","full_name":"mnvoh/OpenStreetMap-Docker","owner":"mnvoh","description":"OpenStreetMap tile server using docker compose.","archived":false,"fork":false,"pushed_at":"2018-07-21T14:29:09.000Z","size":195,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-16T00:43:27.776Z","etag":null,"topics":["docker","docker-compose","openstreetmap","openstreetmap-data","openstreetmap-renderer","postgis","tile-server"],"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/mnvoh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2018-07-18T16:57:10.000Z","updated_at":"2024-03-16T00:43:29.486Z","dependencies_parsed_at":"2024-03-22T07:48:58.881Z","dependency_job_id":null,"html_url":"https://github.com/mnvoh/OpenStreetMap-Docker","commit_stats":null,"previous_names":["mnvoh/openstreetmap-docker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mnvoh/OpenStreetMap-Docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnvoh%2FOpenStreetMap-Docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnvoh%2FOpenStreetMap-Docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnvoh%2FOpenStreetMap-Docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnvoh%2FOpenStreetMap-Docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mnvoh","download_url":"https://codeload.github.com/mnvoh/OpenStreetMap-Docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mnvoh%2FOpenStreetMap-Docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31639524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["docker","docker-compose","openstreetmap","openstreetmap-data","openstreetmap-renderer","postgis","tile-server"],"created_at":"2025-12-27T10:49:31.466Z","updated_at":"2026-04-10T11:01:23.527Z","avatar_url":"https://github.com/mnvoh.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# Setup Guide\n\n## Docker\n- [Install and configure docker](https://docs.docker.com/install/)\n- Clone this repository\n\n```bash\ngit clone https://github.com/mnvoh/OpenStreetMap-Docker.git\n```\n- Change directory to the docker project\n\n```bash\ncd OpenStreetMap-Docker\n``` \n\n- Make a copy of `.env.sample` to `.env` and optionally customize the values\n\n```bash\ncp .env.sample .env\n```\n\n- Build the images\n\n```bash\ndocker-compose build\n```\n\n- Obtain the OSM data, either the planet or a region of your choice and put it in the `data` directory as `import.osm.pbf`\n\n```bash\nwget -O web/data/import.osm.pbf http://download.geofabrik.de/asia/iran-latest.osm.pbf\n```\n\n- Run it!\n\n```bash\ndocker-compose up\n```\n\nAfter you made sure that everything's working, you can daemonize it: `docker-compose up -d`\n\nAlso if you wanna have a much faster startup, remove `import.osm.pbf` so that it's not imported again on the next run.\n\n## Access maps on a domain\n\nOut of the box, there's very simple html file with [Leaflet](https://leafletjs.com/) setup. All you need to do is open it and change the used domains. For example change:\n\n```js\nvar osmUrl='http://maps{s}.nozary.com/hot/{z}/{x}/{y}.png';\n```\n\nTo:\n\n```js\nvar osmUrl='http://{s}.maps.your-domain.tld/hot/{z}/{x}/{y}.png';\n```\n\nHow the subdomains should be set depends on how you've set your DNS records and web server configurations. In this case I've set it to use `mapsa.nozary.com`, `mapsb.nozary.com`, so on and so forth. Although `a.maps.your-domain.com` seems to be more appealing.\n\n## Web Server Configuration\n\nWhether you're using Apache or Nginx, all you have to do is setup a simple reverse proxy. Here are example configurations for both web servers.\n\n### Apache\n```apache\n\u003cVirtualHost *:80\u003e\n  ServerName maps.nozary.com\n  ServerAlias a.maps.nozary.com b.maps.nozary.com c.maps.nozary.com\n  \u003cProxy *\u003e\n    Allow from localhost\n  \u003c/Proxy\u003e\n  ProxyPass / http://localhost:8080/\n\u003c/VirtualHost\u003e\n```\n\n### Nginx\n```nginx\nserver {\n\tlisten 80;\n\tserver_name: maps.nozary.com a.maps.nozary.com b.maps.nozary.com c.maps.nozary.com\n\tlocation / {\n\t\tproxy_pass http://localhost:8080\n\t}\n}\n```\n\n# Roadmap\n\n- [ ] Geocoding using [Nominatim](https://github.com/openstreetmap/Nominatim)\n\n\n\n\nPull Requests are welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnvoh%2Fopenstreetmap-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmnvoh%2Fopenstreetmap-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnvoh%2Fopenstreetmap-docker/lists"}