123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- .. _installation_docker:
- Docker Container
- ================
- Geoserver is also packaged as a Docker Container. For more details, see the `Geoserver Docker Container Project <https://github.com/geoserver/docker>`__.
- See the `README.md <https://github.com/geoserver/docker/blob/master/README.md>`__ file for more technical information.
- Quick Start
- -----------
- This will run the container, with the data directory included with the container:
- #. Make sure you have `Docker <https://www.docker.com/>`__ installed.
- #. Download the container:
- .. only:: not snapshot
- These instructions are for GeoServer |release|.
-
- .. parsed-literal::
-
- docker pull docker.osgeo.org/geoserver:|release|
- .. only:: snapshot
-
- These instructions are for GeoServer |version|-SNAPSHOT which is provided as a :website:`Nightly <release/main>` release.
- Testing a Nightly release is a great way to try out new features, and test community modules.
- Nightly releases change on an ongoing basis and are not suitable for a production environment.
-
- .. parsed-literal::
-
- docker pull docker.osgeo.org/geoserver:|version|.x
- #. Run the container
- .. only:: not snapshot
-
- .. parsed-literal::
- docker run -it -p8080:8080 docker.osgeo.org/geoserver:|release|
- .. only:: snapshot
-
- .. parsed-literal::
- docker run -it -p8080:8080 docker.osgeo.org/geoserver:|version|.x
-
- #. In a web browser, navigate to ``http://localhost:8080/geoserver``.
- If you see the GeoServer Welcome page, then GeoServer is successfully installed.
- .. figure:: images/success.png
- GeoServer Welcome Page
-
- #. This setup is a quick test to ensure the software is working, but is difficult to use as file data can only be transferred to the data directory included with the container via the REST API.
- Using your own Data Directory
- -----------------------------
- This will run the container with a local data directory. The data directory will be `mounted <https://docs.docker.com/storage/bind-mounts/>`__ into the docker container.
- .. note::
- Change `/MY/DATADIRECTORY` to your data directory. If this directory is empty it will be populated with the standard Geoserver Sample Data Directory.
- #. Make sure you have `Docker <https://www.docker.com/>`__ installed.
- #. Download the container
- .. only:: not snapshot
-
- .. parsed-literal::
- docker pull docker.osgeo.org/geoserver:|release|
- .. only:: snapshot
-
- .. parsed-literal::
-
- docker pull docker.osgeo.org/geoserver:|version|.x
- #. Run the container
- .. only:: not snapshot
- .. parsed-literal::
-
- docker run -it -p8080:8080 \\
- --mount type=bind,src=/MY/DATADIRECTORY,target=/opt/geoserver_data \\
- docker.osgeo.org/geoserver:|release|
-
- .. only:: snapshot
-
- .. parsed-literal::
-
- docker run -it -p8080:8080 \\
- --mount type=bind,src=/MY/DATADIRECTORY,target=/opt/geoserver_data \\
- docker.osgeo.org/geoserver:|version|.x
- #. In a web browser, navigate to ``http://localhost:8080/geoserver``.
- If you see the GeoServer Welcome page, then GeoServer is successfully installed.
- .. figure:: images/success.png
- GeoServer Welcome Page
-
- #. This setup allows direct management of the file data shared with the container. This setup is also easy to update to use the latest container.
- Adding GeoServer Extensions
- ---------------------------
- You can add GeoServer Extensions - the container will download them during startup.
- .. only:: not snapshot
- .. parsed-literal::
-
- docker run -it -p8080:8080 \\
- --env INSTALL_EXTENSIONS=true \\
- --env STABLE_EXTENSIONS="ysld,h2" \\
- docker.osgeo.org/geoserver:|release|
- .. only:: snapshot
- .. parsed-literal::
- docker run -it -p8080:8080 \\
- --env INSTALL_EXTENSIONS=true \\
- --env STABLE_EXTENSIONS="ysld,h2" \\
- docker.osgeo.org/geoserver:|version|.x
- This will download and install the YSLD and H2 extension.
- Here is a list of available extensions (taken from the `build server <https://build.geoserver.org/geoserver/main/ext-latest/>`__):
- ::
- app-schema gdal jp2k ogr-wps web-resource
- authkey geofence libjpeg-turbo oracle wmts-multi-dimensional
- cas geofence-server mapml params-extractor wps-cluster-hazelcast
- charts geopkg-output mbstyle printing wps-download
- control-flow grib mongodb pyramid wps-jdbc
- css gwc-s3 monitor querylayer wps
- csw h2 mysql sldservice xslt
- db2 imagemap netcdf-out sqlserver ysld
- dxf importer netcdf vectortiles
- excel inspire ogr-wfs wcs2_0-eo
- Testing Geoserver Community modules
- -----------------------------------
- Working with a Nightly build is a good way to test community modules and provide feedback to developers working on new functionality.
- .. only:: not snapshot
- Community modules are shared as part GeoServer |release| source code bundle to be compiled for testing
- and feedback by the developer community.
-
- When the developer has met the documentation and quality assurance standards for GeoServer they may
- ask for the module to be included in GeoServer.
-
- If you are interested in helping out please contact the developer (list in the :file:`pom.xml` file for the module).
-
- Reference:
-
- * :developer:`community modules <policies/community-modules.html>` (Developer Guide)
-
-
- .. only:: snapshot
-
- To work with community modules you must be using the GeoServer |version|.x nightly build that matches the community module build:
-
- .. parsed-literal::
-
- docker run -it -p8080:8080 \\
- --env INSTALL_EXTENSIONS=true \\
- --env STABLE_EXTENSIONS="ysld,h2" \\
- --env COMMUNITY_EXTENSIONS="ogcapi-features,ogcapi-images,ogcapi-maps,ogcapi-styles,ogcapi-tiles" \\
- docker.osgeo.org/geoserver:|version|.x
-
- For the current list see GeoServer `build server <https://build.geoserver.org/geoserver/main/community-latest/>`__.
-
- ::
-
- activeMQ-broker jdbcconfig pgraster
- backup-restore jdbcstore proxy-base-ext
- cog jms-cluster s3-geotiff
- colormap libdeflate sec-keycloak
- cov-json mbtiles sec-oauth2-geonode
- dds mbtiles-store sec-oauth2-github
- dyndimension mongodb-schemaless sec-oauth2-google
- elasticsearch ncwms sec-oauth2-openid-connect
- features-templating netcdf-ghrsst smart-data-loader
- flatgeobuf notification solr
- gdal-wcs ogcapi-coverages spatialjson
- gdal-wps ogcapi-dggs stac-datastore
- geopkg ogcapi-features taskmanager-core
- gpx ogcapi-images taskmanager-s3
- gsr ogcapi-maps vector-mosaic
- gwc-azure-blobstore ogcapi-styles vsi
- gwc-distributed ogcapi-tiled-features webp
- gwc-mbtiles ogcapi-tiles wps-remote
- gwc-sqlite ogr-datastore rat
- hz-cluster opensearch-eo
- importer-jdbc
- jdbc-metrics
|