Commit f87d90b2 authored by Felix Delattre's avatar Felix Delattre
Browse files

Added pg_tileserv

parent abf7a954
# Copyright (C) 2021:
# Deutsches GeoForschungsZentrum GFZ <https://www.gfz-potsdam.de>
#
# 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/.
FROM debian:bullseye-slim
ENV DEBIAN_FRONTEND noninteractive
ARG VERSION="latest"
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
ca-certificates \
git \
golang \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/CrunchyData/pg_tileserv.git /app
WORKDIR /app
RUN go build -v -ldflags "-s -w -X main.programVersion=${VERSION}"
VOLUME ["/config"]
USER 1001
EXPOSE 7800
ENTRYPOINT ["/app/pg_tileserv"]
CMD []
......@@ -2,6 +2,12 @@
Docker OBM Tiles Vector
=======================
This container provides a simple stack for serving vector tiles from a
`PostgreSQL <https://www.postgresql.org/>`__ database with `PostGIS <https://postgis.net/>`__
extension. It relies on the aggregate function
`ST_AsMVT <https://postgis.net/docs/ST_AsMVT.html>`__ and consists of the containerized
middleware `pg_tileserv <https://github.com/CrunchyData/pg_tileserv>`__ to serve vector tiles.
Copyright and copyleft
----------------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment