OpenStreetMap-Tile-Server
Docker 应用程序 from chrislb's Repository
概述
A production-ready OpenStreetMap tile server running inside a single Docker
container. Includes PostgreSQL, osm2pgsql, renderd, and Apache.
FIRST RUN: Set Post Arguments to [import] and place your .osm.pbf file in
the OSM Data path before starting. After import completes, change Post
Arguments to [run] and restart.
Download map data (PBF files) from https://download.geofabrik.de/
运行时参数
- 网络用户界面
http://[IP]:[PORT:80]/- 网络
bridge- 外壳
bash- 特权
- false
模板配置
Web UI PortPorttcp
HTTP port for tile server and slippy map demo.
- 目标
- 80
- 默认值
- 8080
- 价值
- 8080
Database StoragePathrw
PostgreSQL database storage. Requires significant disk space depending on region size.
- 目标
- /data/database/
- 默认值
- /mnt/user/appdata/osm-tile-server/database
- 价值
- /mnt/user/appdata/osm-tile-server/database
Tile CachePathrw
Rendered map tile cache storage.
- 目标
- /data/tiles/
- 默认值
- /mnt/user/appdata/osm-tile-server/tiles
- 价值
- /mnt/user/appdata/osm-tile-server/tiles
OSM Data (PBF Import)Pathro
Path to your .osm.pbf file downloaded from Geofabrik. Only needed on first run (import mode).
- 目标
- /data/region.osm.pbf
- 默认值
- /mnt/user/appdata/osm-tile-server/data/region.osm.pbf
- 价值
- /mnt/user/appdata/osm-tile-server/data/region.osm.pbf
Custom StylePathrw
Optional: Mount a custom CartoCSS/Mapnik style directory.
- 目标
- /data/style/
- 默认值
- /mnt/user/appdata/osm-tile-server/style
- 价值
- /mnt/user/appdata/osm-tile-server/style
Osmosis State (Live Updates)Pathrw
Required only if UPDATES is set to enabled.
- 目标
- /data/osmosis/
- 默认值
- /mnt/user/appdata/osm-tile-server/osmosis
- 价值
- /mnt/user/appdata/osm-tile-server/osmosis
Render ThreadsVariable
Number of threads used for rendering tiles. Match to your CPU core count.
- 目标
- THREADS
- 默认值
- 4
- 价值
- 4
Live OSM UpdatesVariable
Set to [enabled] to keep the map updated via OSM diffs. Requires the Osmosis path to be set.
- 目标
- UPDATES
- 默认值
- disabled
- 价值
- disabled
Allow CorsVariable
Set to 1 to enable CORS headers (useful when embedding tiles in web apps).
- 目标
- ALLOW_CORS
- 默认值
- 1
- 价值
- 1
下载统计数据
3,476,321
下载总数
12,493
本月
12,493
平均每月
长期下载总量
加载图表...
详细信息
存储库
overv/openstreetmap-tile-server最后更新2025-11-10
初见2026-03-29
在Unraid 上运行 OpenStreetMap-Tile-Server 。
OpenStreetMap-Tile-Server 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。