2026-06-03 10:10:42 +00:00
|
|
|
|
# PROJECT_CONTEXT – rd13_tile_server
|
|
|
|
|
|
|
2026-06-10 07:43:22 +00:00
|
|
|
|
**Letzte Aktualisierung:** 2026-06-10 – Martin laeuft healthy, WebUI aktiv, MediaWiki-Integration vorbereitet
|
2026-06-03 10:10:42 +00:00
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
## Projektziel
|
|
|
|
|
|
|
|
|
|
|
|
Selbst gehosteter Tile Server auf Basis von **Martin** (Rust), der für MediaWiki,
|
|
|
|
|
|
Nextcloud, Home Assistant und andere Dienste Vektorkarten bereitstellt.
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
## Stack
|
|
|
|
|
|
|
2026-06-10 07:43:22 +00:00
|
|
|
|
- **Tile Server:** `ghcr.io/maplibre/martin:latest`
|
2026-06-03 10:10:42 +00:00
|
|
|
|
- **Port:** 9982 extern → 3000 intern
|
|
|
|
|
|
- **Proxy:** NPM (Nginx Proxy Manager) extern – kein nginx-Sidecar
|
|
|
|
|
|
- **Daten:** MBTiles/PMTiles in `/data/`
|
|
|
|
|
|
- **Git Remote:** `ssh://git@192.168.178.6:2222/cschulz/rd13_tile_server.git`
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
## Aktueller Zustand
|
|
|
|
|
|
|
|
|
|
|
|
### Laufende Services
|
2026-06-10 07:43:22 +00:00
|
|
|
|
- Martin-Container: **laeuft** und ist **healthy**
|
|
|
|
|
|
- WebUI: **aktiviert** ueber `--webui enable-for-all`
|
2026-06-03 10:10:42 +00:00
|
|
|
|
|
|
|
|
|
|
### Vorhandene Daten in `/data/`
|
|
|
|
|
|
| Datei/Ordner | Status |
|
|
|
|
|
|
|---|---|
|
2026-06-10 07:43:22 +00:00
|
|
|
|
| `osm.mbtiles` | ✅ wird von Martin erkannt (Source `osm`) |
|
2026-06-03 10:10:42 +00:00
|
|
|
|
| `fonts/` | ✅ installiert |
|
|
|
|
|
|
| `styles/` | ✅ vorhanden |
|
|
|
|
|
|
| `satellite.mbtiles` | ❌ noch nicht heruntergeladen |
|
|
|
|
|
|
|
|
|
|
|
|
### Git-Stand
|
|
|
|
|
|
- Branch: `main`
|
2026-06-10 07:43:22 +00:00
|
|
|
|
- Uncommitted (vor diesem Update): `config/martin.yaml`, `docker-compose.yml`, `docs/mediawiki-config.php`
|
2026-06-03 10:10:42 +00:00
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
2026-06-10 07:43:22 +00:00
|
|
|
|
## Nächste Schritte (fuer naechsten Agenten)
|
2026-06-03 10:10:42 +00:00
|
|
|
|
|
2026-06-10 07:43:22 +00:00
|
|
|
|
1. **MediaWiki-Repo anpassen und committen:**
|
|
|
|
|
|
- Kartographer-Block in LocalSettings auf tile server URL setzen
|
|
|
|
|
|
- Testseite mit `mapframe`/`maplink` anlegen
|
2026-06-03 10:10:42 +00:00
|
|
|
|
|
2026-06-10 07:43:22 +00:00
|
|
|
|
2. **Satellit-Download starten** (optional, ~10 GB, Zoom 0–10):
|
2026-06-03 10:10:42 +00:00
|
|
|
|
```bash
|
|
|
|
|
|
tmux new-session -d -s rd13-sat -c /mnt/services-data/rd13_tile_server \
|
|
|
|
|
|
'python3 scripts/download-satellite.py data/satellite.mbtiles 2>&1 | tee logs/satellite.log'
|
|
|
|
|
|
```
|
|
|
|
|
|
|
2026-06-10 07:43:22 +00:00
|
|
|
|
3. **NPM konfigurieren** (manuell im NPM UI):
|
2026-06-03 10:10:42 +00:00
|
|
|
|
- Proxy Host: `http://HOST:9982`
|
|
|
|
|
|
- Advanced Config: `add_header Cache-Control "public, max-age=86400, stale-while-revalidate=3600" always;`
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
## Bekannte Fallstricke
|
|
|
|
|
|
|
|
|
|
|
|
- `data/tmp/` und `data/sources/` werden von Docker als `root` erstellt → `sudo rm -rf` nötig
|
|
|
|
|
|
- Planetiler braucht sehr viel Disk (87 GB sources + 264 GB tmp + ~70 GB output = ~420 GB)
|
|
|
|
|
|
→ **Nicht mehr nötig**, wir nutzen OpenFreeMap MBTiles direkt
|
|
|
|
|
|
- Fish Shell unterstützt kein heredoc `<< 'EOF'` → Python `open().write()` oder `tee` verwenden
|
|
|
|
|
|
- Download von OpenFreeMap: `wget --continue` für Resume-Support bei Abbruch
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
## Erledigte Aufgaben
|
|
|
|
|
|
|
|
|
|
|
|
- [x] Git-Repo initialisiert und auf Forgejo gepusht
|
|
|
|
|
|
- [x] Migration TileServer-GL → Martin
|
|
|
|
|
|
- [x] nginx-Sidecar entfernt (NPM extern)
|
|
|
|
|
|
- [x] Port auf 9982 geändert
|
|
|
|
|
|
- [x] copilot-instructions auf aktuelles Template aktualisiert
|
|
|
|
|
|
- [x] download-data.sh + download-satellite.py erstellt
|
|
|
|
|
|
- [x] History-System (post-commit Hook + _session.md Konvention) in rd13_copilot_setup implementiert
|
|
|
|
|
|
- [x] Docs für MediaWiki, Nextcloud, Home Assistant erstellt
|
|
|
|
|
|
- [x] Planet-MBTiles Download gestartet (OpenFreeMap, 94 GB)
|
2026-06-10 07:43:22 +00:00
|
|
|
|
- [x] Martin WebUI aktiviert (`--webui enable-for-all`)
|
|
|
|
|
|
- [x] Endpunkte verifiziert (`/health`, `/catalog`, Root 200)
|
|
|
|
|
|
- [x] MediaWiki-Kartographer Doku in `docs/mediawiki-config.php` erweitert
|
2026-06-03 10:10:42 +00:00
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
## Offene Aufgaben
|
|
|
|
|
|
|
2026-06-10 07:43:22 +00:00
|
|
|
|
- [ ] MediaWiki-Repo umstellen und dort committen
|
2026-06-03 10:10:42 +00:00
|
|
|
|
- [ ] Satellit-Download (optional)
|
|
|
|
|
|
- [ ] NPM-Konfiguration (manuell)
|
|
|
|
|
|
- [ ] Hook-Verteilung auf alle Repos (install-hooks.sh)
|
2026-06-10 07:43:22 +00:00
|
|
|
|
- [ ] Martin mit Satellit-Daten testen
|