2020-04-22 06:48:57 +00:00
|
|
|
# This version must match the MAKE_DC_VERSION value below
|
|
|
|
version: "2.3"
|
|
|
|
|
2017-01-06 10:57:40 +00:00
|
|
|
volumes:
|
|
|
|
pgdata:
|
2020-04-22 06:48:57 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
postgres_conn:
|
|
|
|
driver: bridge
|
|
|
|
|
2016-10-06 05:45:00 +00:00
|
|
|
services:
|
2020-04-22 06:48:57 +00:00
|
|
|
|
2016-10-06 05:45:00 +00:00
|
|
|
postgres:
|
2020-04-22 15:15:20 +00:00
|
|
|
image: "${POSTGIS_IMAGE:-openmaptiles/postgis}:${TOOLS_VERSION}"
|
Upgrade to tools v5 - rm import-osm, new downloader... (#785)
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`
2020-05-05 15:53:09 +00:00
|
|
|
# Use "command: postgres -c jit=off" for PostgreSQL 11+ because of slow large MVT query processing
|
2016-10-06 05:45:00 +00:00
|
|
|
volumes:
|
2019-12-11 14:26:25 +00:00
|
|
|
- pgdata:/var/lib/postgresql/data
|
2017-02-01 21:34:17 +00:00
|
|
|
networks:
|
2019-12-11 14:26:25 +00:00
|
|
|
- postgres_conn
|
2016-10-06 05:45:00 +00:00
|
|
|
ports:
|
2019-12-11 14:26:25 +00:00
|
|
|
- "5432"
|
Upgrade to tools v5 - rm import-osm, new downloader... (#785)
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`
2020-05-05 15:53:09 +00:00
|
|
|
env_file: .env-postgres
|
2020-04-22 06:48:57 +00:00
|
|
|
|
|
|
|
import-data:
|
|
|
|
image: "openmaptiles/import-data:${TOOLS_VERSION}"
|
2016-10-28 14:11:26 +00:00
|
|
|
env_file: .env
|
2017-02-01 21:34:17 +00:00
|
|
|
networks:
|
2019-12-11 14:26:25 +00:00
|
|
|
- postgres_conn
|
2020-04-22 06:48:57 +00:00
|
|
|
|
2020-01-22 21:16:38 +00:00
|
|
|
openmaptiles-tools:
|
|
|
|
image: "openmaptiles/openmaptiles-tools:${TOOLS_VERSION}"
|
2017-11-10 20:28:12 +00:00
|
|
|
env_file: .env
|
2020-04-22 06:48:57 +00:00
|
|
|
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"
|
2020-04-22 15:15:20 +00:00
|
|
|
# Allow DIFF_MODE to be overwritten from shell
|
|
|
|
DIFF_MODE: ${DIFF_MODE}
|
2017-11-10 20:28:12 +00:00
|
|
|
networks:
|
2019-12-11 14:26:25 +00:00
|
|
|
- postgres_conn
|
2017-11-10 20:28:12 +00:00
|
|
|
volumes:
|
2020-01-22 21:16:38 +00:00
|
|
|
- .:/tileset
|
2020-03-06 18:15:54 +00:00
|
|
|
- ./data:/import
|
2020-05-18 18:26:51 +00:00
|
|
|
- ./build/sql:/sql
|
2020-04-22 15:15:20 +00:00
|
|
|
- ./build:/mapping
|
|
|
|
- ./cache:/cache
|
2020-04-22 06:48:57 +00:00
|
|
|
|
2017-01-16 08:57:23 +00:00
|
|
|
generate-changed-vectortiles:
|
2019-12-12 17:40:31 +00:00
|
|
|
image: "openmaptiles/generate-vectortiles:${TOOLS_VERSION}"
|
2017-01-16 08:57:23 +00:00
|
|
|
command: ./export-list.sh
|
|
|
|
volumes:
|
2019-12-11 14:26:25 +00:00
|
|
|
- ./data:/export
|
|
|
|
- ./build/openmaptiles.tm2source:/tm2source
|
2017-02-01 21:34:17 +00:00
|
|
|
networks:
|
2019-12-11 14:26:25 +00:00
|
|
|
- postgres_conn
|
2017-01-16 08:57:23 +00:00
|
|
|
env_file: .env
|
2020-04-22 06:48:57 +00:00
|
|
|
|
2016-10-30 15:31:38 +00:00
|
|
|
generate-vectortiles:
|
2019-12-12 17:40:31 +00:00
|
|
|
image: "openmaptiles/generate-vectortiles:${TOOLS_VERSION}"
|
2016-10-08 20:04:12 +00:00
|
|
|
volumes:
|
2019-12-11 14:26:25 +00:00
|
|
|
- ./data:/export
|
|
|
|
- ./build/openmaptiles.tm2source:/tm2source
|
2017-02-01 21:34:17 +00:00
|
|
|
networks:
|
2019-12-11 14:26:25 +00:00
|
|
|
- postgres_conn
|
2016-10-08 20:04:12 +00:00
|
|
|
env_file: .env
|
|
|
|
environment:
|
2017-01-06 10:53:11 +00:00
|
|
|
BBOX: ${BBOX}
|
|
|
|
MIN_ZOOM: ${MIN_ZOOM}
|
|
|
|
MAX_ZOOM: ${MAX_ZOOM}
|
2020-04-22 06:48:57 +00:00
|
|
|
|
2017-05-10 22:35:01 +00:00
|
|
|
postserve:
|
2019-12-12 17:40:31 +00:00
|
|
|
image: "openmaptiles/openmaptiles-tools:${TOOLS_VERSION}"
|
|
|
|
command: postserve openmaptiles.yaml --verbose
|
2017-05-10 22:35:01 +00:00
|
|
|
env_file: .env
|
|
|
|
networks:
|
2019-12-11 14:26:25 +00:00
|
|
|
- postgres_conn
|
2017-05-10 22:35:01 +00:00
|
|
|
ports:
|
2019-12-12 17:40:31 +00:00
|
|
|
- "8090:8090"
|
2017-05-10 22:35:01 +00:00
|
|
|
volumes:
|
2019-12-12 17:40:31 +00:00
|
|
|
- .:/tileset
|