Skip to content

dockerstuff/docker-geoserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-geoserver

Docker container for GeoServer on top of Apache Tomcat, using the Web Archive distribution package.

For docker images already built, check DockerHub' chbrandt/geoserver.


Container settings:


Run container

Run the (latest) container:

$ docker run -p 8080:8080 chbrandt/geoserver

Give it a data directory to copy/publish:

$ docker run -v $PWD/data:/data \
             -p 8080:8080 chbrandt/geoserver

Then go to your browser' http://localhost:8080/geoserver.

Build your image

If you want to create an image for a particular version of GeoServer you can give docker build an argument specifying it:

$ cd dockerfile/
$ docker build --build-arg GEOSERVER_VERSION=2.18.3 -t my_geoserver .

Relocating the data directory

By default, the data is stored under data/ in the root of GeoServer installation, in a Tomcat/WAR setup it is at ${CATALINA_HOME}/webapps/geoserver/data/.

To change it one can define an environment variable 'GEOSERVER_DATA_DIR' defining the path to use instead. E.g.,

$ docker run -e GEOSERVER_DATA_DIR='/var/lib/geoserver_data' \
  -p 8080:8080 chbrandt/geoserver

See GeoServer' docs on data-directory

About

Container for GeoServer using Tomcat

Resources

Stars

Watchers

Forks

Packages

No packages published