Sign inSign up

baasgeo/mapgallery

By baasgeo

Updated about 12 hours ago

MapGallery is a straightforward solution for interactive maps and location data viewing.

Image
0

10K+

baasgeo/mapgallery repository overview

MapGallery is a straightforward solution for interactive maps and location data viewing. It is designed with simplicity, performance and usability in mind and works efficiently across all major desktop and mobile platforms. This is a docker image that eases setting up MapGallery for organizations. This image is based on the official nginx image.

Installation

Simple pull the image from the docker hub.

$ docker pull baasgeo/mapgallery:tagname

Alternatively you can build the image locally

$ git clone https://github.com/baasgeo/docker-mapgallery.git
$ cd mapgallery-docker
$ docker build -t "baasgeo/mapgallery:tagname" .

Quick start

Create a data folder on your host:

$ sudo mkdir /var/mapgallery/

then run the container:

$ docker run \
    --name=mapgallery \
    --publish=8080:8081 \
    --volume /var/mapgallery:/usr/share/nginx/assets \
    --memory 32mb \
    baasgeo/mapgallery:4

Point your browser to http://localhost:8080/ and login using MapGallery's default username and password:

  • Username: admin
  • Password: admin

How to use different versions

There is mainly one version tag of this image for every minor MapGallery version.

  • 4.0.x -> baasgeo/mapgallery:4.0
  • 4.1.x -> baasgeo/mapgallery:4.1
  • 4.2.x -> baasgeo/mapgallery:4.2
  • 5.0.x -> baasgeo/mapgallery:5.0

...and so on.

Patches are applied to the minor version whenever an update of MapGallery is available. Simply update to the latest version by pulling the image again.

$ docker pull baasgeo/mapgallery:tagname
$ docker restart mapgallery

Configuration

Data volume

This MapGallery container keeps its configuration data at /usr/share/nginx/assets which is exposed as volume in the dockerfile. The volume allows for stopping and starting new containers from the same image without losing all the data and custom configuration.

You may want to map this volume to a directory on the host. Volumes can be mounted by passing the -v or --volume flag to the docker run command:

--volume /var/mapgallery:/usr/share/nginx/assets

This will also ease the upgrade process in the future.

Resource constraints

By default, the container has no resource constraints and can use as much of a given resource as the host’s kernel scheduler allows. To control how much memory, or CPU a container can use, apply runtime configuration flags of the docker run command as described here: Runtime options with Memory, CPUs, and GPUs

Database

MapGallery uses the PostgREST api with PostgreSQL database

PostgREST container

To set up the PostgREST container, use the the official postgrest image:

$ docker run -d --name="postgrest" postgrest/postgrest

For further information see Docker Hub

Now start the MapGallery instance by adding the --link option to the docker run command:

--link postgrest:postgrest
PostgreSQL container

If you want to use a PostgreSQL container, you can link it to this image. You're free to use any PostgreSQL container. An example with the official postgres image:

$ docker run -d --name="postgis" postgres

For further information see Docker Hub

Now start the MapGallery instance by adding the --link option to the docker run command:

--link postgres:postgis

Tag summary

Content type

Image

Digest

sha256:87776cacc

Size

37.1 MB

Last updated

about 12 hours ago

docker pull baasgeo/mapgallery