Update to tools v5. See https://github.com/openmaptiles/openmaptiles-tools/releases/tag/v5.0.0 for the list of all changes. Other OMT-repo specific changes: * removes `import-osm` docker usage, replacing it with `openmaptiles-tools` * quickstart builds faster because it uses postgres with preloaded water, natural earth, and lake centerlines tables. ### Makefile targets * `tools-dev` will open a shell in a docker to experiment and debug (instead of `import-sql-dev` and `import-osm-dev`) * separated `start-maputnik` from `start-postserve` * renamed `clean-docker` into `db-destroy` to make it more explicit * cleaner `db-start`, `db-stop`, `db-destroy` targets * `db-start-preloaded` is the same as `db-start`, except that it uses `postgis-preloaded` -- an image with preloaded water, natural-earth, and lake centerline data * `db-start` will not recreate the container if it already exists -- this way if it was started as preloaded, it will not be rebuilt. * better output messages ### Quickstart * uses `postgis-preloaded` image by default to make quickstart quicker. To start with a clean db, pass 2 parameters to quickstart, e.g. `./quickstart.sh albania empty`
81 lines
1.9 KiB
YAML
81 lines
1.9 KiB
YAML
# This version must match the MAKE_DC_VERSION value below
|
|
version: "2.3"
|
|
|
|
volumes:
|
|
pgdata:
|
|
|
|
networks:
|
|
postgres_conn:
|
|
driver: bridge
|
|
|
|
services:
|
|
|
|
postgres:
|
|
image: "${POSTGIS_IMAGE:-openmaptiles/postgis}:${TOOLS_VERSION}"
|
|
# Use "command: postgres -c jit=off" for PostgreSQL 11+ because of slow large MVT query processing
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
networks:
|
|
- postgres_conn
|
|
ports:
|
|
- "5432"
|
|
env_file: .env-postgres
|
|
|
|
import-data:
|
|
image: "openmaptiles/import-data:${TOOLS_VERSION}"
|
|
env_file: .env
|
|
networks:
|
|
- postgres_conn
|
|
|
|
openmaptiles-tools:
|
|
image: "openmaptiles/openmaptiles-tools:${TOOLS_VERSION}"
|
|
env_file: .env
|
|
environment:
|
|
# Must match the version of this file (first line)
|
|
# download-osm will use it when generating a composer file
|
|
MAKE_DC_VERSION: "2.3"
|
|
# Allow DIFF_MODE to be overwritten from shell
|
|
DIFF_MODE: ${DIFF_MODE}
|
|
networks:
|
|
- postgres_conn
|
|
volumes:
|
|
- .:/tileset
|
|
- ./data:/import
|
|
- ./build:/sql
|
|
- ./build:/mapping
|
|
- ./cache:/cache
|
|
|
|
generate-changed-vectortiles:
|
|
image: "openmaptiles/generate-vectortiles:${TOOLS_VERSION}"
|
|
command: ./export-list.sh
|
|
volumes:
|
|
- ./data:/export
|
|
- ./build/openmaptiles.tm2source:/tm2source
|
|
networks:
|
|
- postgres_conn
|
|
env_file: .env
|
|
|
|
generate-vectortiles:
|
|
image: "openmaptiles/generate-vectortiles:${TOOLS_VERSION}"
|
|
volumes:
|
|
- ./data:/export
|
|
- ./build/openmaptiles.tm2source:/tm2source
|
|
networks:
|
|
- postgres_conn
|
|
env_file: .env
|
|
environment:
|
|
BBOX: ${BBOX}
|
|
MIN_ZOOM: ${MIN_ZOOM}
|
|
MAX_ZOOM: ${MAX_ZOOM}
|
|
|
|
postserve:
|
|
image: "openmaptiles/openmaptiles-tools:${TOOLS_VERSION}"
|
|
command: postserve openmaptiles.yaml --verbose
|
|
env_file: .env
|
|
networks:
|
|
- postgres_conn
|
|
ports:
|
|
- "8090:8090"
|
|
volumes:
|
|
- .:/tileset
|