forked from cuulee/faas-idler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (41 loc) · 1.22 KB
/
docker-compose.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
version: "3.3"
services:
faas-idler:
image: openfaas/faas-idler:0.3.0
networks:
- func_functions
environment:
gateway_url: "http://gateway:8080/"
prometheus_host: "prometheus"
prometheus_port: "9090"
inactivity_duration: "5m"
reconcile_interval: "30s"
command: "-dry-run=false"
deploy:
resources:
limits: # Enable if you want to limit memory usage
memory: 50M
reservations:
memory: 30M
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 20
window: 380s
placement:
constraints:
- "node.platform.os == linux"
- "node.role == manager"
secrets:
- source: basic-auth-user
target: /var/secrets/basic-auth-user
- source: basic-auth-password
target: /var/secrets/basic-auth-password
networks:
func_functions:
external: true
secrets:
basic-auth-user:
external: true
basic-auth-password:
external: true