Files
pygeoapi/docker/examples/elastic
Jo 90e43adf2b Added elasticsearch configuration, to make it work with single node (#794)
* - Added missing parameters on the openapi definition of get an observations tile request

* - changed default background map to osm

* Revert "- changed default background map to osm"

This reverts commit 554c065c6699ad6c0585f5c09ce34e746d5b3dc2.

* - added discovery.type to elasticsearch configuration, to prevent failed bootstrap checks

Co-authored-by: doublebyte1 <info@doublebyte.net>
2021-10-11 20:22:05 -04:00
..

pygeoapi with ElasticSearch (ES)

These folders contain a Docker Compose configuration necessary to setup a minimal pygeoapi server that uses a local ES backend service.

This config is only for local development and testing.

ElasticSearch

  • official ElasticSearch: 5.6.8 on CentosOS 7
  • ports 9300 and 9200

ES requires the host system to have its virtual memory parameter (max_map_count) here set as follows:

sudo sysctl -w vm.max_map_count=262144

If the docker composition fails with the following error:

docker_elastic_search_1 exited with code 78

it is very likely that you forgot to setup the sysctl.

Building and Running

To build and run the Docker compose file in localhost:

sudo sysctl -w vm.max_map_count=262144
docker-compose build
docker-compose up