forked from hylkevds/FROST-Server.Plugin.WaterQualityIE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
45 lines (42 loc) · 1.22 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: '3'
services:
waterquality_web:
build:
context: ..
dockerfile: Dockerfile
image: hylkevds/frost-http-waterquality:latest
ports:
- 8080:8080
environment:
- serviceRootUrl=http://localhost:8080/FROST-Server
- queueLoggingInterval=1000
- http_cors_enable=true
- http_cors_allowed_origins=*
- persistence_db_driver=org.postgresql.Driver
- persistence_db_url=jdbc:postgresql://waterquality_database:5432/sensorthings
- persistence_db_username=sensorthings
- persistence_db_password=ChangeMe
- persistence_autoUpdateDatabase=true
- FROST_LL=info
- FROST_LL_service=info
- FROST_LL_org_jooq=info
depends_on:
waterquality_database:
condition: service_healthy
waterquality_database:
image: postgis/postgis:14-3.2-alpine
environment:
- POSTGRES_DB=sensorthings
- POSTGRES_USER=sensorthings
- POSTGRES_PASSWORD=ChangeMe
volumes:
- waterquality_volume:/var/lib/postgresql/data
ports:
- 6543:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -d sensorthings -U sensorthings "]
interval: 10s
timeout: 5s
retries: 5
volumes:
waterquality_volume: