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 ./databaseOn ARM architecture: docker build --platform linux/amd64 -t sensordb ./database
Start the Database
Linux / macOS
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" \
sensordbConfigure Connection
Each command accepts connection parameters either as CLI arguments or as environment variables. CLI arguments take precedence over environment variables.
| CLI argument | Environment variable | Default |
|---|---|---|
--db-host | SENSORDB_HOST | localhost |
--db-port | SENSORDB_PORT | 5432 |
--db-name | SENSORDB_NAME | sensordb |
--db-username | SENSORDB_USERNAME | postgres |
--db-password | SENSORDB_PASSWORD | — |
--db-max-connections | SENSORDB_MAX_CONNECTIONS | 10 |
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:
Linux / macOS
export SENSORDB_PASSWORD=changeMeLast updated on