How to pre-configure GeoServer in docker image?

by Eike   Last Updated October 09, 2019 14:22 PM

I am using GeoServer 2.16.0 docker image build by myself based on kartoza's dockerfile.

The only pre-configuration is down via environment files, e.g. geoserver.env:

ENABLE_JSONP=true                                                                                                                                         
FOOTPRINTS_DATA_DIR=/opt/footprints_dir
GEOSERVER_ADMIN_PASSWORD=myawesomegeoserver
GEOSERVER_DATA_DIR=/opt/geoserver/data_dir
GEOSERVER_NODE_OPTS="id:$hostname - ($host_ip);background:red;color:white"
GEOWEBCACHE_CACHE_DIR=/opt/geoserver/data_dir/gwc
#JAVA_OPTS="-Duser.country=US -Duser.language=en"
MAX_FILTER_RULES=20
OPTIMIZE_LINE_WIDTH=false

I would like to configure more, e.g. workspaces, stores, but cannot find any according documentation.

Is there any better way than the following?

  1. Configuring a running container having the DATA_DIR mounted
  2. Create an own image based in kartoza's and add the DATA_DIR content?


Related Questions


Updated July 28, 2019 02:22 AM

Updated March 28, 2018 16:22 PM

Updated December 03, 2018 20:22 PM

Updated July 23, 2018 11:22 AM

Updated December 17, 2018 10:22 AM