Docker image for official geoserver/geofence repo.
This container was designed specifically designed to work with a PostgreSQL database, so the included OVR file needs to be amended and
mounted as a volume with the amended database configuration as specified in the geoserver/geofence repo: Database Configuration.
Should the default H2 database be preferred, please remove lines #12 & #13 from the Dockerfile.
- Clone repo
$ git clone https://github.com/tb4mmaggots/docker-geofence.git
- Go to cloned directory
$ cd docker-geofence
$ docker build -t geofence:3.3.0
$ docker-compose build
$ docker run -d --name geofence -p 8080:8080 -v $(pwd)/geofence-datasource-ovr.properties:/usr/local/tomcat/webapps/geofence/WEB-INF/classes/geofence-datasource-ovr.properties geofence:3.3.0
$ docker-compose up -d
$ docker pull tb4mmaggots/geofence