forked from josumoreno-BP/pyntelope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (35 loc) · 928 Bytes
/
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
44
45
46
47
version: "3"
x-common: &commons
deploy:
resources:
limits:
cpus: '0.5'
memory: 500m
mem_swappiness: 0
memswap_limit: 0
services:
blockproducer:
build: .
image: leap:3.1.3
container_name: blockproducer
command: ["bash", "/docker/run_leap.sh"]
volumes:
- ./docker:/docker:ro
ports:
- "8888:8888/tcp"
healthcheck:
test: ["CMD", "curl", "http://localhost:8888/v1/chain/get_info"]
interval: 2s
timeout: 2s
retries: 3
start_period: 60s
deployer:
build: .
image: leap:3.1.3
container_name: deployer
command: ["bash", "/docker/deploy.sh"]
volumes:
- ./docker:/docker:ro
depends_on:
blockproducer:
condition: service_healthy