-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose-mbase.yml
85 lines (81 loc) · 2.38 KB
/
docker-compose-mbase.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: "3"
# runs the entire refiner pipeline with all supporting services (including refiner) in docker
# set .env such that all services in docker are talking to each other only
services:
ewm-das:
image: "us-docker.pkg.dev/covalent-project/network/ewm-das:stable"
volumes:
- ~/.ipfs:/root/.ipfs/
container_name: ewm-das
restart: always
labels:
"autoheal": "true"
entrypoint: |
/bin/bash -l -c "
./usr/local/bin/pinner --addr :5080 --w3-agent-key $W3_AGENT_KEY --w3-delegation-proof-path $W3_DELEGATION_FILE;"
expose:
- "4001:4001"
- "5080:5080"
environment:
- W3_AGENT_KEY=${W3_AGENT_KEY}
- W3_DELEGATION_FILE=/root/.ipfs/proof.out
networks:
- cxt-net
ports:
- "4001:4001"
- "5080:5080"
evm-server:
image: "us-docker.pkg.dev/covalent-project/network/evm-server:stable"
container_name: evm-server
restart: always
labels:
"autoheal": "true"
expose:
- "3002:3002"
networks:
- cxt-net
ports:
- "3002:3002"
refiner:
image: "us-docker.pkg.dev/covalent-project/network/refiner:latest"
container_name: refiner
links:
- "ewm-das:ewm-das"
- "evm-server:evm-server"
# build:
# context: .
# dockerfile: Dockerfile
restart: always
depends_on:
ewm-das:
condition: service_healthy
evm-server:
condition: service_healthy
entrypoint: >
/bin/bash -l -c "
echo "moonbase-node:" $NODE_ETHEREUM_MAINNET;
echo "evm-server:" $EVM_SERVER_URL;
echo "ewm-das:" $IPFS_PINNER_URL;
cd /mix;
MIX_ENV=dev mix deps.get;
MIX_ENV=dev mix release --overwrite;
MIX_ENV=dev mix run --no-halt --eval 'Refiner.ProofChain.BlockSpecimenEventListener.start()';"
environment:
- NODE_ETHEREUM_MAINNET=${NODE_ETHEREUM_MAINNET}
- BLOCK_RESULT_OPERATOR_PRIVATE_KEY=${BLOCK_RESULT_OPERATOR_PRIVATE_KEY}
- EVM_SERVER_URL=${EVM_SERVER_URL}
- IPFS_PINNER_URL=${IPFS_PINNER_URL}
networks:
- cxt-net
ports:
- "9568:9568" # prometheus metrics will be exported at http://localhost:9568/metrics etc.
autoheal:
image: willfarrell/autoheal
container_name: autoheal
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
- AUTOHEAL_INTERVAL=10
- CURL_TIMEOUT=30
networks:
cxt-net: