-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.yml
72 lines (67 loc) · 1.45 KB
/
functions.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3.2'
networks:
streaming:
external:
name: streaming
monitoring:
external:
name: monitoring
functions:
external:
name: functions
frontend:
external:
name: frontend
services:
gateway:
image: functions/gateway:0.6.15
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
dnsrr: 'true'
deploy:
placement:
constraints:
- 'node.role == manager'
- 'node.platform.os == linux'
ports:
- 8080:8080
networks:
- functions
- monitoring
- frontend
deploy:
labels:
- "traefik.backend=gateway"
- "traefik.port=8080"
- "traefik.docker.network=frontend"
- "traefik.frontend.rule=Host:faas.docker.fun"
ftrigger-kafka:
image: ucalgary/ftrigger:master
depends_on:
- kafka
command: kafka-trigger
networks:
- functions
- streaming
db-trigger:
image: whatever4711/fun-db:trigger
depends_on:
- kafka-trigger
labels:
function: "true"
environment:
fprocess: "python3 index.py"
no_proxy: "gateway"
https_proxy: $https_proxy
write_debug: "true"
deploy:
placement:
constraints:
- 'node.platform.os == linux'
labels:
ftrigger.kafka: 'true'
ftrigger.kafka.topic: 'dbserver.faas.person'
ftrigger.kafka.data: 'key-value'
networks:
- functions