Overv / openstreetmap-tile-server

Docker file for a minimal effort OpenStreetMap tile server
Apache License 2.0
1.2k stars 482 forks source link

Is there a way to stop and then resume the import? #394

Open ghevge opened 11 months ago

ghevge commented 11 months ago

I'm trying to import the whole worlds into my test tiles server, but the import operation is very time consuming. So I would like to stop it at some point and resume it later. Is that possible? If yes, how?

I was trying to just kill the import container, and then restart it, but during the restart, the container fails to start, while trying to recreate a role in the DB.

My import docker-compose looks like this:

version: "3.8"

services:
  tile-service:
    image: overv/openstreetmap-tile-server
    container_name: tile-service
    deploy:
      resources:
        limits:
          cpus: 20
          memory: 58G
    environment:
      - OSM2PGSQL_EXTRA_ARGS=-C 8192
      - THREADS=22
      - FLAT_NODES=enabled
    volumes:
      - /data/database/:/data/database/
      - /data/package/planet-230925.osm.pbf:/data/region.osm.pbf
    networks:
      mw-network:
        aliases:
          - tile-service
    ports:
      - "8080:80"
    command: "import"

networks:
  mw-network:
    external:
      name: mw-network
Istador commented 11 months ago

As far as I know: No.

ghevge commented 11 months ago

And there is no way to lazy load this data?

helletheone commented 10 months ago

i need a solutions for that problem

romannik007 commented 4 months ago

connect to the container in sh and adjust run.sh