rd13_tile_server/docker-compose.build.yml

66 lines
3.6 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Planetiler Build Vektor-Tiles für höhere Zoom-Level
#
# LÄUFT AUF DEM HOST-RECHNER (nicht auf dem Server).
# Voraussetzung: Docker Desktop (macOS/Windows) oder Docker Engine (Linux)
#
# ══════════════════════════════════════════════════════════════════════
# SCHRITT 1: Build starten
# ══════════════════════════════════════════════════════════════════════
#
# # Germany z0-16 (~12 GB Output, ~2h, 8 GB RAM)
# AREA=germany MAX_ZOOM=16 RAM=8g docker compose -f docker-compose.build.yml up
#
# # Austria z0-16 (~2 GB Output, ~20min, 4 GB RAM)
# AREA=austria MAX_ZOOM=16 RAM=4g docker compose -f docker-compose.build.yml up
#
# # Europe z0-16 (~80 GB Output, ~12h, 16 GB RAM)
# AREA=europe MAX_ZOOM=16 RAM=16g docker compose -f docker-compose.build.yml up
#
# Status verfolgen (zweites Terminal):
# docker compose -f docker-compose.build.yml logs -f
#
# ══════════════════════════════════════════════════════════════════════
# SCHRITT 2: Ergebnis auf Server übertragen
# ══════════════════════════════════════════════════════════════════════
#
# rsync -avh --progress \
# ./build/<AREA>.mbtiles \
# rd13server@192.168.178.6:/mnt/services-data/rd13_tile_server/data/osm-<AREA>.mbtiles
#
# ══════════════════════════════════════════════════════════════════════
# SCHRITT 3: Martin auf dem Server neu starten
# ══════════════════════════════════════════════════════════════════════
#
# ssh rd13server@192.168.178.6 \
# "cd /mnt/services-data/rd13_tile_server && docker compose restart martin"
#
# # Neue Source prüfen:
# curl https://tiles.rd13server.de/catalog | grep osm-<AREA>
#
# ══════════════════════════════════════════════════════════════════════
# UMGEBUNGSVARIABLEN (Defaults)
# ══════════════════════════════════════════════════════════════════════
# AREA = germany (germany | austria | switzerland | europe | planet)
# MAX_ZOOM = 16 (14 = Planet-Level, 16 = Detail)
# RAM = 8g (Java Heap: 8g für DE, 16g für EU)
services:
planetiler-build:
image: ghcr.io/onthegomap/planetiler:latest
container_name: rd13_planetiler_build
volumes:
- ./build:/data
environment:
- JAVA_TOOL_OPTIONS=-Xmx${RAM:-8g}
command:
- "--download"
- "--area=${AREA:-germany}"
- "--output=/data/${AREA:-germany}.mbtiles"
- "--maxzoom=${MAX_ZOOM:-16}"
- "--force"
restart: "no"
deploy:
resources:
limits:
cpus: "${BUILD_CPUS:-8.0}"
memory: ${BUILD_MEM:-12g}