-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-stack.yaml
47 lines (46 loc) · 1006 Bytes
/
docker-stack.yaml
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
version: "3.8"
services:
admin:
image: localhost:3000/${ADMIN_IMAGE}
stop_grace_period: 10s
volumes:
- /data/data:/data
- /data/log:/log
ports:
- "3003:80"
environment:
APP_ENV: PRODUCTION
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3000/health" ]
interval: 15s
timeout: 10s
retries: 3
start_period: 10s
deploy:
replicas: 3
update_config:
parallelism: 1
delay: 60s
failure_action: rollback
restart_policy:
condition: on-failure
resources:
limits:
cpus: "2"
memory: "200M"
bot:
image: localhost:3000/${WEB_IMAGE}
stop_grace_period: 10s
volumes:
- /data/data:/data
deploy:
replicas: 3
update_config:
parallelism: 1
failure_action: rollback
restart_policy:
condition: on-failure
resources:
limits:
cpus: "2"
memory: "500M"