-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
81 lines (71 loc) · 2.43 KB
/
docker-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
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
version: '3'
x-common-fendermint: &common-fendermint
image: ghcr.io/consensus-shipyard/ipc-dx-docker:sha-039cdad
network_mode: host
environment:
SUBNET_ID: ${SUBNET_ID}
PARENT_REGISTRY: 0xc7068Cea947035560128a6a6F4c8913523A5A44C
PARENT_GATEWAY: 0x0341fA160C66aBB112195192aE359a6D61df45cd
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /tmp/data:/tmp/data
- ~/.ipc:/root/.ipc
services:
fendermint:
<<: *common-fendermint
environment:
PRIVATE_KEY_PATH: /tmp/data/.ipc/priv_key1.txt
SUBNET_ID: ${SUBNET_ID}
PARENT_REGISTRY: 0xc7068Cea947035560128a6a6F4c8913523A5A44C
PARENT_GATEWAY: 0x0341fA160C66aBB112195192aE359a6D61df45cd
entrypoint: /app/fendermint.sh
testnode:
<<: *common-fendermint
environment:
PRIVATE_KEY_PATH: /tmp/data/.ipc/priv_key1.txt
SUBNET_ID: ${SUBNET_ID}
entrypoint: /app/fendermint.sh
command: testnode
bootstrap:
<<: *common-fendermint
environment:
PRIVATE_KEY_PATH: /tmp/data/.ipc/priv_key1.txt
SUBNET_ID: ${SUBNET_ID}
PARENT_REGISTRY: 0xc7068Cea947035560128a6a6F4c8913523A5A44C
PARENT_GATEWAY: 0x0341fA160C66aBB112195192aE359a6D61df45cd
entrypoint: /app/bootstrap.sh
validator1:
<<: *common-fendermint
environment:
NODE_NAME: validator-1
PRIVATE_KEY_PATH: /tmp/data/.ipc/priv_key1.txt
SUBNET_ID: ${SUBNET_ID}
PARENT_REGISTRY: 0xc7068Cea947035560128a6a6F4c8913523A5A44C
PARENT_GATEWAY: 0x0341fA160C66aBB112195192aE359a6D61df45cd
entrypoint: /app/validator.sh
validator2:
<<: *common-fendermint
environment:
NODE_NAME: validator-2
PRIVATE_KEY_PATH: /tmp/data/.ipc/priv_key2.txt
SUBNET_ID: ${SUBNET_ID}
PARENT_REGISTRY: 0xc7068Cea947035560128a6a6F4c8913523A5A44C
PARENT_GATEWAY: 0x0341fA160C66aBB112195192aE359a6D61df45cd
entrypoint: /app/validator.sh
validator3:
<<: *common-fendermint
environment:
NODE_NAME: validator-2
PRIVATE_KEY_PATH: /tmp/data/.ipc/priv_key2.txt
SUBNET_ID: ${SUBNET_ID}
PARENT_REGISTRY: 0xc7068Cea947035560128a6a6F4c8913523A5A44C
PARENT_GATEWAY: 0x0341fA160C66aBB112195192aE359a6D61df45cd
entrypoint: /app/validator.sh
ipc-cli:
image: ghcr.io/consensus-shipyard/ipc-cli-docker:sha-713836e
network_mode: host
environment:
SUBNET_ID: ${SUBNET_ID}
volumes:
- ~/.ipc:/root/.ipc
- /tmp/data:/tmp/data