Skip to content

GeoServer with a few useful plugins for Docker

Notifications You must be signed in to change notification settings

bsteinemann/docker-geoserver

 
 

Repository files navigation

Docker image for GeoServer

A docker image that runs GeoServer version 2.20.1

To run

cd docker-geoserver
docker build . -t geoserver:latest
docker run -p 8600:8080 geoserver:latest

Visit http://localhost:8600/web/

If you want modifications to be persistent

you should add a mount point that overwrites /mnt/geoserver_datadir, in the example below we will use $HOME/data/geoserver_datadir.

We must first create a copy of the original geoserver_datadir if we don't have one already, otherwise de default directory in jetty home will be used.

mkdir -p $HOME/data/
cp -r ./min_data_dir $HOME/data/geoserver_datadir

# change permissions on to jetty user. Adapt this to your needs if you are not using the default 999:999 user
sudo chown -R 999:999 $HOME/data/geoserver_datadir

# launch the container, the volume should be writable by jetty.
docker run -v $HOME/data/geoserver_datadir:/mnt/geoserver_datadir --rm -d -p 8600:8080 --name geoserver geoserver:latest

About

GeoServer with a few useful plugins for Docker

Resources

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scheme 46.6%
  • Dockerfile 36.4%
  • Python 12.8%
  • Makefile 4.2%