PostGIS

Below is a test setup using the mdillon/postgis docker container that has PostGIS extension installed.

This will automatically download and run the container making live a little easier. Note the use of the Postgis specfic driver and url.

ebean:
  geometrySRID: 4674  # If we don't want the default geometrySRID of 4326

  test:
    shutdown: none # stop | remove | none
    platform: postgis
    ddlMode: dropCreate # none | dropCreate | migrations | create
    dbName: my_gisapp

The above postgis platform is equivalent to the setup below which uses:

username:{databaseName}
password:test
port:7432
url:jdbc:postgresql_lwgis://localhost:{port}/{databaseName}
driver:org.postgis.DriverWrapperLW
image:mdillon/postgis:{version}
ebean:
  geometrySRID: 4674

  test:
    shutdown: none # stop | remove | none
    platform: postgres
    ddlMode: dropCreate # none | dropCreate | migrations | create
    dbName: my_gisapp
    postgres:
      containerName: postgis
      image: mdillon/postgis
      extensions: postgis
      url: jdbc:postgresql_lwgis://127.0.0.1:7432/my_gisapp
      driver: org.postgis.DriverWrapperLW