Skip to content
Snippets Groups Projects
Commit 9abaf20c authored by Felix Delattre's avatar Felix Delattre
Browse files

Added raster tile server

parent c40cfdae
No related branches found
No related tags found
No related merge requests found
==============================
Docker Compose OpenBuildingMap
==============================
====================================
Docker Compose OpenBuildingMap Serve
====================================
This is a `Docker Compose <https://docs.docker.com/compose/>`__ setup for
the `OpenBuildingMap <https://openbuildingmap.org>`__ stack.
the `OpenBuildingMap <https://openbuildingmap.org>`__ layer stack.
It contains and assembles:
* a database (`Docker OBM Database <https://gitext.gfz-potsdam.de/dynamicexposure/server-components/containers/docker-obm-database>`__)
* an importer and updater service (`Docker OBM Importer <https://gitext.gfz-potsdam.de/dynamicexposure/server-components/containers/docker-obm-importer>`__)
* a calculation engine (in progress)
* a raster tile server (`Docker OBM Tiles Raster <https://gitext.gfz-potsdam.de/dynamicexposure/server-components/containers/docker-obm-tiles-raster>`__)
* a vector tile server (in progress)
* a database (`Docker OBM Database <https://git.gfz-potsdam.de/dynamicexposure/server-components/containers/docker-obm-database>`__)
* a raster tile server (`Docker OBM Tiles Raster <https://git.gfz-potsdam.de/dynamicexposure/server-components/containers/docker-obm-tiles-raster>`__)
* raster layer styles (`Tiles Raster Styles <https://git.gfz-potsdam.de/dynamicexposure/openbuildingmap/tiles-raster-styles>`__)
Requirements
------------
......@@ -20,7 +19,7 @@ The following dependencies must be installed on the system:
* `Docker <https://www.docker.com/>`__
* `Docker Compose <https://docs.docker.com/compose/>`__
* Check out the Raster Layer Styles into the `data` directory
Run the setup
-------------
......@@ -37,7 +36,7 @@ Inspect the logs
Copyright and copyleft
----------------------
Copyright (C) 2020
Copyright (C) 2020-2021
* Helmholtz-Zentrum Potsdam Deutsches GeoForschungsZentrum GFZ
......
[renderd]
stats_file=/run/renderd/renderd.stats
socketname=/run/renderd/renderd.sock
num_threads=4
tile_dir=/var/cache/renderd/tiles
[mapnik]
plugins_dir=/usr/lib/mapnik/3.0/input
font_dir=/usr/share/fonts/truetype
font_dir_recurse=true
[all-buildings]
URI=/all-buildings
XML=/srv/mapnik/obm-all-buildings.xml
[renderd]
stats_file=/run/renderd/renderd.stats
socketname=/run/renderd/renderd.sock
num_threads=4
tile_dir=/var/cache/renderd/tiles
[mapnik]
plugins_dir=/usr/lib/mapnik/3.0/input
font_dir=/usr/share/fonts/truetype
font_dir_recurse=true
[building-levels]
URI=/building-levels
XML=/srv/mapnik/obm-building-levels.xml
[renderd]
stats_file=/run/renderd/renderd.stats
socketname=/run/renderd/renderd.sock
num_threads=4
tile_dir=/var/cache/renderd/tiles
[mapnik]
plugins_dir=/usr/lib/mapnik/3.0/input
font_dir=/usr/share/fonts/truetype
font_dir_recurse=true
[floor-space]
URI=/floor-space
XML=/srv/mapnik/obm-floor-space.xml
[renderd]
stats_file=/run/renderd/renderd.stats
socketname=/run/renderd/renderd.sock
num_threads=4
tile_dir=/var/cache/renderd/tiles
[mapnik]
plugins_dir=/usr/lib/mapnik/3.0/input
font_dir=/usr/share/fonts/truetype
font_dir_recurse=true
[ground-area]
URI=/ground-area
XML=/srv/mapnik/obm-ground-area.xml
[renderd]
stats_file=/run/renderd/renderd.stats
socketname=/run/renderd/renderd.sock
num_threads=4
tile_dir=/var/cache/renderd/tiles
[mapnik]
plugins_dir=/usr/lib/mapnik/3.0/input
font_dir=/usr/share/fonts/truetype
font_dir_recurse=true
[occupancy]
URI=/occupancy
XML=/srv/mapnik/obm-occupancy.xml
[renderd]
stats_file=/run/renderd/renderd.stats
socketname=/run/renderd/renderd.sock
num_threads=4
tile_dir=/var/cache/renderd/tiles
[mapnik]
plugins_dir=/usr/lib/mapnik/3.0/input
font_dir=/usr/share/fonts/truetype
font_dir_recurse=true
[position]
URI=/position
XML=/srv/mapnik/obm-position.xml
# Copyright (c) 2020-2021:
# Helmholtz-Zentrum Potsdam Deutsches GeoForschungsZentrum GFZ
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
# General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
version: '3.3'
services:
# OpenBuildingMap database
openbuildingmap-database:
build: ../docker-obm-database/
# OpenBuildingMap Buildings database
openbuildingmap-db-buildings:
build: ../container/docker-obm-database/
# OpenBuildingMap raster tile layer for all-buildings
raster-all-buildings:
build: ../container/docker-obm-tiles-raster/
# OpenBuildingMap raster tile layer for building-levels
raster-building-levels:
build: ../container/docker-obm-tiles-raster/
# OpenBuildingMap raster tile layer for floor-space
raster-floor-space:
build: ../container/docker-obm-tiles-raster/
# OpenBuildingMap raster tile layer for ground-area
raster-ground-area:
build: ../container/docker-obm-tiles-raster/
# OpenBuildingMap raster tile layer for occupancy
raster-occupancy:
build: ../container/docker-obm-tiles-raster/
# OpenBuildingMap importer
openbuildingmap-importer:
build: ../docker-obm-importer/
# OpenBuildingMap raster tile layer for position
raster-position:
build: ../container/docker-obm-tiles-raster/
# Copyright (c) 2020-2021:
# Helmholtz-Zentrum Potsdam Deutsches GeoForschungsZentrum GFZ
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
# General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
version: '3.3'
services:
# OpenBuildingMap database
openbuildingmap-database:
build: https://gitext.gfz-potsdam.de/dynamicexposure/server-components/containers/docker-obm-database.git
# OpenBuildingMap Buildings database
openbuildingmap-db-buildings:
build: https://git.gfz-potsdam.de/dynamicexposure/server-components/containers/docker-obm-database.git
restart: unless-stopped
ports:
- "5432"
......@@ -12,8 +28,50 @@ services:
environment:
POSTGRES_HOST_AUTH_METHOD: trust
# OpenBuildingMap importer
openbuildingmap-importer:
build: https://gitext.gfz-potsdam.de/dynamicexposure/server-components/containers/docker-obm-importer.git
# OpenBuildingMap raster tile layer for all-buildings
raster-all-buildings:
build: https://git.gfz-potsdam.de/dynamicexposure/server-components/containers/docker-obm-tiles-raster.git
volumes:
- ./conf/all-buildings/renderd.conf:/etc/renderd.conf
- ./data/tiles/all-buildings:/var/cache/renderd/tiles/all-buildings
- ./data/raster-styles:/srv/mapnik
# OpenBuildingMap raster tile layer for building-levels
raster-building-levels:
build: https://git.gfz-potsdam.de/dynamicexposure/server-components/containers/docker-obm-tiles-raster.git
volumes:
- ./conf/building-levels/renderd.conf:/etc/renderd.conf
- ./data/tiles/building-levels:/var/cache/renderd/tiles/building-levels
- ./data/raster-styles:/srv/mapnik
# OpenBuildingMap raster tile layer for floor-space
raster-floor-space:
build: https://git.gfz-potsdam.de/dynamicexposure/server-components/containers/docker-obm-tiles-raster.git
volumes:
- ./conf/floor-space/renderd.conf:/etc/renderd.conf
- ./data/tiles/floor-space:/var/cache/renderd/tiles/floor-space
- ./data/raster-styles:/srv/mapnik
# OpenBuildingMap raster tile layer for ground-area
raster-ground-area:
build: https://git.gfz-potsdam.de/dynamicexposure/server-components/containers/docker-obm-tiles-raster.git
volumes:
- ./conf/ground-area/renderd.conf:/etc/renderd.conf
- ./data/tiles/ground-area:/var/cache/renderd/tiles/ground-area
- ./data/raster-styles:/srv/mapnik
# OpenBuildingMap raster tile layer for occupancy
raster-occupancy:
build: https://git.gfz-potsdam.de/dynamicexposure/server-components/containers/docker-obm-tiles-raster.git
volumes:
- ./conf/occupancy/renderd.conf:/etc/renderd.conf
- ./data/tiles/occupancy:/var/cache/renderd/tiles/occupancy
- ./data/raster-styles:/srv/mapnik
# OpenBuildingMap raster tile layer for position
raster-position:
build: https://git.gfz-potsdam.de/dynamicexposure/server-components/containers/docker-obm-tiles-raster.git
volumes:
- ./data/openbuildingmap/import:/tmp/import
- ./conf/position/renderd.conf:/etc/renderd.conf
- ./data/tiles/position:/var/cache/renderd/tiles/position
- ./data/raster-styles:/srv/mapnik
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment