Live documentation for the development version.
The FROST-Server needs a database to store its data. Currently only PostgreSQL with the PostGIS extensions is supported.
CREATE EXTENSION postgis;
)CREATE EXTENSION "uuid-ossp";
)When FROST-Server is deployed directly on Tomcat or Wildfly, the HTTP and all-in-one MQTTP packages use JNDI to get a database resource.
You have to configure a resource in Tomcat/Wildfly, and then tell the FROST-Server what name you gave this resource.
The default name is jdbc/sensorThings
.
When deploying FROST-Server using containers, the database connection details are configured using environment variables.
The relevant variables are: persistence.db.url
, persistence.db.username
and persistence.db.password
.
After setting up FROST-Server in Docker, Tomcat or Wildfly:
This should initialise/update the database to the latest version and the service is ready for use.
Now you may want to have a look at Performance tips for PostgreSQL and PostGIS.