-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathcompose.yaml
40 lines (37 loc) · 895 Bytes
/
compose.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
name: madara_runner
services:
madara:
image: madara:latest
container_name: "madara_runner"
cpus: "4.0"
mem_limit: "16gb"
ports:
- 9944:9944
labels:
- "autoheal=true"
environment:
- RPC_API_KEY_FILE=/run/secrets/rpc_api_key
secrets:
- rpc_api_key
volumes:
- /var/lib/madara:/tmp/madara
- ./madara-runner.sh:/usr/local/bin/runner.sh:ro
entrypoint:
- /usr/local/bin/runner.sh
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9944/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
restart: on-failure:3
autoheal:
image: willfarrell/autoheal:latest
tty: true
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock
secrets:
rpc_api_key:
file: .secrets/rpc_api.secret