Skip to content

Commit bdf4f11

Browse files
committed
fix: add read/write tests by starting frost server, fix datastream serialization
1 parent 55d8424 commit bdf4f11

5 files changed

Lines changed: 530 additions & 340 deletions

File tree

frost_server/docker-compose.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
services:
2+
web:
3+
image: docker.io/fraunhoferiosb/frost-server:latest
4+
environment:
5+
# For all settings see: https://fraunhoferiosb.github.io/FROST-Server/settings/settings.html
6+
- serviceRootUrl=http://localhost:8080/FROST-Server
7+
- plugins_multiDatastream.enable=false
8+
- http_cors_enable=true
9+
- http_cors_allowed_origins=*
10+
- persistence_db_driver=org.postgresql.Driver
11+
- persistence_db_url=jdbc:postgresql://database:5432/sensorthings
12+
- persistence_db_username=sensorthings
13+
- persistence_db_password=ChangeMe
14+
- persistence_autoUpdateDatabase=true
15+
ports:
16+
- 8080:8080
17+
- 1883:1883
18+
depends_on:
19+
database:
20+
condition: service_healthy
21+
22+
database:
23+
image: docker.io/postgis/postgis:16-3.4-alpine
24+
environment:
25+
- POSTGRES_DB=sensorthings
26+
- POSTGRES_USER=sensorthings
27+
- POSTGRES_PASSWORD=ChangeMe
28+
volumes:
29+
- postgis_volume:/var/lib/postgresql/data
30+
healthcheck:
31+
test: ["CMD-SHELL", "pg_isready -d sensorthings -U sensorthings "]
32+
interval: 2s
33+
timeout: 2s
34+
retries: 10
35+
36+
volumes:
37+
postgis_volume:
38+

0 commit comments

Comments
 (0)