-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
59 lines (53 loc) · 1.47 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# This is based on the FROST Server Docker Compose file, with
# additional commands to force FROST to build its database then add a
# PostgreSQL constraint (the default command for the `jumpstart`
# container).
version: "3.8"
services:
# Jumpstart hits the root URL with a HEAD request, which on first run
# will trigger the database creation for FROST.
jumpstart:
build: .
environment:
- POSTGRES_DB=sensorthings
- POSTGRES_USER=sensorthings
- POSTGRES_PASSWORD=ChangeMe
networks:
- frost
depends_on:
- database
- web
web:
image: fraunhoferiosb/frost-server:latest
environment:
- serviceRootUrl=http://localhost:8080/FROST-Server
- http_cors_enable=true
- http_cors_allowed.origins=*
- persistence_db_driver=org.postgresql.Driver
- persistence_db_url=jdbc:postgresql://database:5432/sensorthings
- persistence_db_username=sensorthings
- persistence_db_password=ChangeMe
- persistence_autoUpdateDatabase=true
networks:
- frost
ports:
- 8080:8080
- 1883:1883
depends_on:
- database
restart: unless-stopped
database:
image: postgis/postgis:11-2.5-alpine
environment:
- POSTGRES_DB=sensorthings
- POSTGRES_USER=sensorthings
- POSTGRES_PASSWORD=ChangeMe
networks:
- frost
volumes:
- postgis_volume:/var/lib/postgresql/data
restart: unless-stopped
networks:
frost:
volumes:
postgis_volume: