-
Notifications
You must be signed in to change notification settings - Fork 8
/
node-l2.yaml
64 lines (57 loc) · 1.51 KB
/
node-l2.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: "3.9"
services:
# ########################################################################## #
# Common chainweb node spec
node:
labels:
com.chainweb.devnet.description: "Devnet Node"
com.chainweb.devnet.node: ""
# image: ghcr.io/kadena-io/chainweb-node/ubuntu:latest
image: ${CHAINWEB_NODE_IMAGE}
restart: unless-stopped
stop_grace_period: 20s
stop_signal: SIGINT
ulimits:
nofile:
soft: 65535
hard: 65535
expose:
- "1790"
- "1849"
configs:
- source: chainweb-node.common
target: /chainweb/config/chainweb-node.common-l2.yaml
mode: 0440
- source: chainweb-node.logging
target: /chainweb/config/chainweb-node.logging.yaml
mode: 0440
entrypoint:
- /chainweb/chainweb-node
# Runtime Settings
- +RTS
- -T
- -H400M
- -A64M
- -RTS
# Common Configuration
- --config-file=config/chainweb-node.common-l2.yaml
- --config-file=config/chainweb-node.logging.yaml
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
update_config:
delay: 60s
order: stop-first
healthcheck:
test:
- 'CMD'
- '/bin/bash'
- '-c'
- 'exec 3<>/dev/tcp/localhost/1849; printf "GET /health-check HTTP/1.1\r\nhost: http://localhost:1849\r\nConnection: close\r\n\r\n" >&3; grep -q "200 OK" <&3 || exit 1'
interval: 30s
timeout: 30s
retries: 5
start_period: 2m