Based on terrestris/tomcat:
- Alpine Linux
- Java Server JRE 8 (unlimited JCE Policy)
- Tomcat 8.5
- GeoServer
- Native Java advanced imaging (JAI) is installed
- (but) JAI-EXT is enabled by default
- Marlin renderer
- Strong cryptography enabled (Hash/Digest)
- Default logging profile: PRODUCTION
- Default WFS service level: Basic
docker build -t {YOUR_TAG} .
Build the image as described above, then:
docker run -it -p 80:8080 {YOUR_TAG}
or if you want to start the container daemonized:
docker run -d -p 80:8080 {YOUR_TAG}
Check http://localhost/geoserver to see the geoserver page and login with geoserver defaults admin:geoserver
docker build --build-arg GS_VERSION={YOUR_VERSION} -t {YOUR_TAG} .
docker build --build-arg GS_DATA_PATH={RELATIVE_PATH_TO_YOUR_GS_DATA} .
Note: The passed path must not be absolute! Instead, the path should be within the build context (e.g. next to the Dockerfile) and should be passed as a relative path, e.g. GS_DATA_PATH=./my_data/
Yes! Just pass the --build-arg
param twice, e.g.
... --build-arg GS_VERSION={VERSION} --build-arg GS_DATA_PATH={PATH} ...
Put your *.jar
files (e.g. the WPS extension) in the additional_libs
folder and build with one of the commands from above! (They will be copied to the GeoServer WEB-INF/lib
folder during the build.)
Note: Similar to the GeoServer data path from above, you can also configure the path to the additional libraries by passing the ADDITIONAL_LIBS_PATH
argument when building:
--build-arg ADDITIONAL_LIBS_PATH={RELATIVE_PATH_TO_YOUR_LIBS}
docker exec -it {CONTAINER_ID} tail -f /opt/geoserver_data/logs/geoserver.log