-
Notifications
You must be signed in to change notification settings - Fork 0
/
fastservice_stack.yml
46 lines (42 loc) · 935 Bytes
/
fastservice_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
version: "3.8"
# Default logging option
x-default-opts: &default-opts
logging:
options:
max-size: "1m"
services:
fastservice:
<<: *default-opts
image: ${DOCKERIMG?Variable not set}
healthcheck:
test: python /app/healthcheck.py
interval: 1m
timeout: 3s
retries: 2
configs:
- source: fastservice_env_config
target: /env_config
secrets:
- fastservice_postgres_user
- fastservice_postgres_passwd
- api_client_secret
deploy:
mode: replicated
replicas: 3
update_config:
parallelism: 1
delay: 10s
failure_action: rollback
monitor: 10s
max_failure_ratio: 0.7
order: start-first
configs:
fastservice_env_config:
external: true
secrets:
fastservice_postgres_user:
external: true
fastservice_postgres_passwd:
external: true
api_client_secret:
external: true