Video coming soon…
🗺️ Setup an OSM Tile Server — Host Your Own Map Tiles
Deploy a self-hosted OpenStreetMap tile server on Ubuntu with Docker — render and serve your own map tiles from any Geofabrik region, ready for Leaflet and other map libraries, on port 8317.
⚠️ This script is provided for demo and testing purposes only. Not intended for production use.
📦 Resources & Setup Scripts
Grab the automated bash script from GitHub to follow along with the video.
Quick Install:
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/maps/osm-tile-server/osm-tile-server-ubuntu.sh
chmod +x osm-tile-server-ubuntu.sh
./osm-tile-server-ubuntu.sh
Tutorial Steps
1 Download the Script
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/maps/osm-tile-server/osm-tile-server-ubuntu.sh
2 Make it Executable
chmod +x osm-tile-server-ubuntu.sh
3 Run the Installer
./osm-tile-server-ubuntu.sh
4 Use the Tile Endpoint
http://your-server-ip:8317/tile/{z}/{x}/{y}.png
Ports Used
| Port | Purpose |
|---|---|
| 8317 | Web view and tile endpoint at /tile/{z}/{x}/{y}.png (mapped from container port 80) |