Skip to Content
DocumentationGetting Started

Getting Started

You need Docker  and Rust  installed.

Build the Database

Currently, no pre-built Docker images are available, so you’ll need to build the database yourself:

docker build -t sensordb ./database

On ARM architecture: docker build --platform linux/amd64 -t sensordb ./database

Start the Database

docker run --name sensordb -p 5432:5432 -d \ -e "SRID=25832" \ -e "SRS_NAME=urn:adv:crs:ETRS89_UTM32*DE_DHHN2016_NH" \ -e "POSTGRES_DB=sensordb" \ -e "POSTGRES_USER=postgres" \ -e "POSTGRES_PASSWORD=changeMe" \ -e "PROJ_NETWORK=ON" \ -e "POSTGIS_SFCGAL=true" \ sensordb

Configure Connection

Each command accepts connection parameters either as CLI arguments or as environment variables. CLI arguments take precedence over environment variables.

CLI argumentEnvironment variableDefault
--db-hostSENSORDB_HOSTlocalhost
--db-portSENSORDB_PORT5432
--db-nameSENSORDB_NAMEsensordb
--db-usernameSENSORDB_USERNAMEpostgres
--db-passwordSENSORDB_PASSWORD
--db-max-connectionsSENSORDB_MAX_CONNECTIONS10

The defaults match the local setup above, so for a local install you only need to set the password. Setting it as an environment variable once avoids repeating it on every command:

export SENSORDB_PASSWORD=changeMe
Last updated on