From 4ec7016608ecd3daec392374ebb950be498ffaf7 Mon Sep 17 00:00:00 2001 From: lukasmartinelli Date: Thu, 6 Oct 2016 08:25:00 +0200 Subject: [PATCH] Add OSM import to compose file and README --- README.md | 10 ++++++++++ docker-compose.yml | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/README.md b/README.md index 42a8fb8..f4ccb46 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,16 @@ Import [Natural Earth](http://www.naturalearthdata.com/) data. docker-compose run import-natural-earth ``` +Import [OpenStreetMap](http://wiki.openstreetmap.org/wiki/Osm2pgsql) data based on the [ClearTables osm2pgsql style](https://github.com/ClearTables/ClearTables). +In order to do this you first need to clone the latest ClearTables. + +- [ ] *Should we use a submodule for ClearTables? On the other hand it is quite convenient to able to work directly on ClearTables while working on the style.* + +```bash +git clone https://github.com/ClearTables/ClearTables.git +docker-compose run import-osm +``` + ### Work on Vector Tile Schema Run the `db-schema` container each time you modify SQL code inside `./schema`. diff --git a/docker-compose.yml b/docker-compose.yml index 3d5fb70..349638c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,6 +14,14 @@ services: env_file: .env links: - postgres:postgres + import-osm: + image: "osm2vectortiles/import-osm" + env_file: .env + links: + - postgres + volumes: + - ./data:/import + - ./ClearTables:/opt/cleartables import-natural-earth: image: "osm2vectortiles/import-natural-earth" env_file: .env