This is a demo of running your own WMS tile layer that Kibana can pull a "map" layer from.
First put some shapefiles into the build directory or comment out the COPY line in the Dockerfile.
docker build --tag example/geoserver .
docker run -p 8080:8080 example/geoserver
Or, if you commented out the COPY line in the Dockerfile, mount a local directory:
docker run -p 8080:8080 -v $HOME/my_maps:/opt/geoserver/data_dir example/geoserver
Note: add a "-d" to daemonize.
From within Geoserver:
- Login to geoserver: http://:8080/geoserver (defaults are: admin/geoserver)
- Click Workspace -> Add new workspace -> Make up a name and uri prefix
- Click Stores -> Create "Store" from Shapefile or directory of Shapefiles
- Click "Browse" to find the "shapefiles" directory in the data_dir
- Click "Publish" to create a map.
- Under "Bounding Boxes" click "Compute from data" and "Compute from native bounds"
- Click "Save"
- On left hand side menu click "Tile Layers"
- Select the "Preview" drop down and select "EPSG:4326 / png"
- View your new layer.
While caching is enabled by default, without further setup the server will use a default caching strategy that is file based and located in the default data directory. If the data directory is not mounted as a volume it will use the containers emphemeral storage. To improve caching persistance and efficiency either mount the data directory or create a new BlobStore mounted to a fast (SSD/RAID) persistent disk.