-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathstack.yml
52 lines (48 loc) · 1.15 KB
/
stack.yml
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
version: 1.0
provider:
name: openfaas
gateway: http://127.0.0.1:8080
functions:
mqtt-publisher:
lang: node12
handler: ./mqtt-publisher
image: ${DOCKER_USER:-packetiotdemo}/mqtt-publisher:0.1.0
labels:
com.openfaas.scale.min: 0
com.openfaas.scale.max: 10
secrets:
- emitter
db-inserter:
lang: node12
handler: ./db-inserter
image: ${DOCKER_USER:-packetiotdemo}/db-inserter:0.4.0
annotations:
topic: "drone-position/,drone-event/"
environment:
db_port: 5432
db_name: postgres
labels:
com.openfaas.scale.min: 5
com.openfaas.scale.max: 10
secrets:
- db
db-reader:
lang: node12
handler: ./db-reader
image: ${DOCKER_USER:-packetiotdemo}/db-reader:0.5.0
environment:
db_port: 5432
db_name: postgres
labels:
com.openfaas.scale.min: 5
com.openfaas.scale.max: 5
secrets:
- db
# Microservice to render static HTML
render-map:
lang: dockerfile
handler: ./render-map
image: ${DOCKER_USER:-packetiotdemo}/render-map:0.4.1
labels:
com.openfaas.scale.min: 1
com.openfaas.scale.max: 1