forked from testdrivenio/openci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-faas.yml
103 lines (96 loc) · 2.07 KB
/
docker-compose-faas.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: '3.5'
services:
gateway:
ports:
- 8080:8080
image: functions/gateway:0.7.9
networks:
- functions
environment:
functions_provider_url: 'http://faas-swarm:8080/'
read_timeout: '25s'
write_timeout: '25s'
upstream_timeout: '20s'
dnsrr: 'true'
direct_functions: 'true'
direct_functions_suffix: ''
deploy:
resources:
reservations:
memory: 100M
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 20
window: 380s
placement:
constraints:
- 'node.platform.os == linux'
faas-swarm:
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
image: functions/faas-swarm:0.2.3
networks:
- functions
environment:
read_timeout: '25s'
write_timeout: '25s'
DOCKER_API_VERSION: '1.30'
deploy:
placement:
constraints:
- 'node.role == manager'
- 'node.platform.os == linux'
resources:
reservations:
memory: 100M
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 20
window: 380s
eval:
image: python-eval:latest
labels:
function: 'true'
networks:
- functions
environment:
no_proxy: 'gateway'
https_proxy: $https_proxy
deploy:
placement:
constraints:
- 'node.platform.os == linux'
ping:
image: python-ping:latest
labels:
function: 'true'
networks:
- functions
environment:
no_proxy: 'gateway'
https_proxy: $https_proxy
deploy:
placement:
constraints:
- 'node.platform.os == linux'
hook:
image: python-hook:latest
labels:
function: 'true'
networks:
- functions
environment:
no_proxy: 'gateway'
https_proxy: $https_proxy
deploy:
placement:
constraints:
- 'node.platform.os == linux'
networks:
functions:
driver: overlay
attachable: true
labels:
- 'openfaas=true'